0% found this document useful (0 votes)
9 views3 pages

Spring Datasource Url

The document outlines the configuration settings for a Spring application, including database connection details, JPA settings, and email server configurations. It specifies the use of MySQL as the database, Gmail for sending emails, and includes JWT and two-factor authentication settings. Additionally, it contains Google reCAPTCHA configuration for enhanced security during development.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Spring Datasource Url

The document outlines the configuration settings for a Spring application, including database connection details, JPA settings, and email server configurations. It specifies the use of MySQL as the database, Gmail for sending emails, and includes JWT and two-factor authentication settings. Additionally, it contains Google reCAPTCHA configuration for enhanced security during development.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# spring:

# datasource:
# url: jdbc:mysql://localhost:3306/twofactor_auth?
createDatabaseIfNotExist=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetriev
al=true
# username: root
# password: root
# driver-class-name: com.mysql.cj.jdbc.Driver
# jpa:
# show-sql: true
# hibernate:
# ddl-auto: update
# properties:
# hibernate:
# dialect: org.hibernate.dialect.MySQL8Dialect
# format_sql: true

# mail:
# host: smtp.gmail.com
# port: 587
# username: [email protected]
# password: cgbv mafr lqwu vivf
# properties:
# mail:
# smtp:
# auth: true
# starttls:
# enable: true
# required: true
# ssl:
# trust: smtp.gmail.com
# protocols: TLSv1.2
# connectiontimeout: 10000
# timeout: 10000
# writetimeout: 10000
# # Reliability improvements
# sendpartial: true
# quitwait: false
# debug: true
# transport:
# protocol: smtp
# default-encoding: UTF-8
# test-connection: true

# server:
# port: 8082
# servlet:
# context-path: /api

# app:
# jwt:
# expiration: 86400000
# mail:
# from: [email protected] # Using same email as SMTP username
# tfa:
# issuer: TwoFactorAuth
# validity-period: 30
# digits: 6
# url:
# frontend: http://localhost:3000 # Frontend application URL for password
reset links

# # Google reCAPTCHA configuration

# google:
# recaptcha:
# site-key: 6LeY4_oqAAAAAAbHgvetFulQ-McPyqhCsPjtBtHl # Google's test key for
development
# secret: 6LeY4_oqAAAAAI1ji6QcUzV0VGf54Qr0vHBwVrpc # Google's test secret
for development
# verify-url: https://www.google.com/recaptcha/api/siteverify

spring:
datasource:
url: jdbc:mysql://switchback.proxy.rlwy.net:30695/railway
username: root
password: NtRtyynldHoWNqmcfPtqFZRQlndYKfzL
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
show-sql: true
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
format_sql: true

logging:
level:
root: DEBUG

mail:
host: smtp.gmail.com
port: 587
username: [email protected]
password: cgbv mafr lqwu vivf
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
ssl:
trust: smtp.gmail.com
connectiontimeout: 10000
timeout: 10000
writetimeout: 10000
# Connection pooling
connection-pool:
size: 5
enable: true
# Session pooling
session:
pooling: true
pool:
size: 5
# Retry mechanism
retry:
count: 3
delay: 1000
# Reliability improvements
sendpartial: true
quitwait: false
connectionpool:
size: 5
debug: true
debug: true
transport:
protocol: smtp
default-encoding: UTF-8
test-connection: true

server:
port: 8082
servlet:
context-path: /api

app:
jwt:
expiration: 86400000
mail:
from: [email protected] # Using same email as SMTP username
tfa:
issuer: TwoFactorAuth
validity-period: 30
digits: 6
url:
frontend: https://tfafrontend-production.up.railway.app # Frontend application
URL for password reset links

# Google reCAPTCHA configuration

# google:
# recaptcha:
# site-key: 6LeY4_oqAAAAAAbHgvetFulQ-McPyqhCsPjtBtHl # Google's test key for
development
# secret: 6LeY4_oqAAAAAI1ji6QcUzV0VGf54Qr0vHBwVrpc # Google's test secret
for development
# verify-url: https://www.google.com/recaptcha/api/siteverify

google:
recaptcha:
site-key: 6Lc8-vwqAAAAAM6pSulL7ReN7X2tG1sIBoG-YCjC # Google's test key for
development
secret: 6Lc8-vwqAAAAAJirm84_co0iZh0EwX1XPE6-tUOq # Google's test secret for
development
verify-url: https://www.google.com/recaptcha/api/siteverify

You might also like