-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.properties
47 lines (39 loc) · 1.53 KB
/
application.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#test
#spring.security.user.name=user
#spring.security.user.password=user
#server.port=
# H2 Database Configuration
#spring.datasource.url=jdbc:h2:mem:testdb
#spring.datasource.driverClassName=org.h2.Driver
#spring.datasource.username=sa
#spring.datasource.password=
#spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
#spring.jpa.show-sql=true
#spring.h2.console.enabled=true
#spring.h2.console.path=/h2-console
#psql
spring.datasource.url=jdbc:postgresql://localhost:5432/productdb
spring.datasource.username=anurag
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=create-drop
#spring.jpa.properties.hibernate.format-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
#smtp mail
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=<your email address>
spring.mail.password=<generated password>
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.connectiontimeout=5000
spring.mail.properties.mail.smtp.timeout=5000
spring.mail.properties.mail.smtp.writetimeout=5000
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.socketFactory.port=587
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
#enable ssh {https}
#keytool -genkeypair -alias 0x00 -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore https.p12 -validity 3650
server.ssl.enabled=true
server.ssl.key-store-type=PKCS12
server.ssl.key-store=classpath:https.p12
server.ssl.key-store-password=password
server.ssl.key-alias=0x00