application.properties 3.24 KB
Newer Older
Jie Yuan's avatar
Jie Yuan committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
## addd oauth client and resource information
security.oauth2.client.clientId=jie.yuan
security.oauth2.client.clientSecret=jieyuan2018
security.oauth2.client.accessTokenUri=https://unity.eudat-aai.fz-juelich.de:443/oauth2/token
security.oauth2.client.userAuthorizationUri=https://unity.eudat-aai.fz-juelich.de:443/oauth2-as/oauth2-authz
security.oauth2.client.scope=USER_PROFILE
security.oauth2.client.grantType=authorization_code
security.oauth2.resource.userInfoUri=https://unity.eudat-aai.fz-juelich.de:443/oauth2/userinfo


app.jwtSecret= JWTSuperSecretKey
app.jwtExpirationInMs = 604800000


18
19
spring.jpa.hibernate.ddl-auto=create
#spring.jpa.hibernate.ddl-auto=none
Jie Yuan's avatar
Jie Yuan committed
20
#spring.jpa.hibernate.ddl-auto=create-drop
Jie Yuan's avatar
Jie Yuan committed
21
#spring.datasource.url=jdbc:mysql://localhost:3306/svmontest
22
23
24
spring.datasource.url=jdbc:mysql://mysql2g.scc.kit.edu:3306/ez9857_devtest1
#  using this for production
#spring.datasource.url=jdbc:mysql://mysql2g.scc.kit.edu:3306/ez9857_svmontest
Jie Yuan's avatar
Jie Yuan committed
25
26
#spring.datasource.url=jdbc:mysql://svmon-dev.scc.kit.edu:3306/svmon
# TODO - Change the privileges to only let make select, insert, delete and update and not schema
Jie Yuan's avatar
Jie Yuan committed
27
28
spring.datasource.username=ez9857
spring.datasource.password=mysql@KIT@2018
Jie Yuan's avatar
Jie Yuan committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#spring.datasource.driver-class-name =com.mysql.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect

server.error.whitelabel.enabled=true

# TODO - This is for debug and develop, comment it when finish db development operations
#logging.level.org.hibernate.SQL=DEBUG
#logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE


# Credentials for DPMT
externalCredentials.username =api-user
externalCredentials.password =GOCDB-api-user

#Cron configuration scheduled tasks

#Checks if there is new data on the DMPT and GOCDB servers and update the local DB, default executes every day at 00:00 AM 
scheduled.checkForUpdatesDatabase=0 1 1 * * * 

#Logging configuration

#Enables colored output acording diferent lvls (info, warning, error)
spring.output.ansi.enabled.TRUE

#Path of the logs folder
logging.file =${user.dir}/logs/svmon.log

server.port=8443
# The alias mapped to the certificate
server.ssl.key-alias=1
59
60
# production
#server.ssl.key-alias=shared
Jie Yuan's avatar
Jie Yuan committed
61
62
# The password used to generate the certificate
server.ssl.key-password=changeit
63
64
# production
server.ssl.key-password=123456
Jie Yuan's avatar
Jie Yuan committed
65
66
# The path to the keystore containing the certificate
server.ssl.key-store=tomcat.keystore
67
68
# production
#server.ssl.key-store=store.keys
Jie Yuan's avatar
Jie Yuan committed
69
70
71
72
73
74
75
76
77
78
79
80
81
server.ssl.key-store-provider=SUN
# The format used for the keystore 
server.ssl.key-store-type=JKS
# Tell Spring Security (if used) to require requests over HTTPS
security.require-ssl=true

security.sessions=NEVER

#Configuration
# The path to the keystore of the GOCDB CERTIFICATE containing the certificate
certificateGOCDB.name=svmonKeystore.p12
# The password used to generate the certificate
certificateGOCDB.password=12345
82
certificateGOCDB.trustStorePath=/home/yuan/develop/svmon-app/svmon-keys/cacerts
Jie Yuan's avatar
Jie Yuan committed
83
#certificateGOCDB.trustStorePath=C:\\Program Files\\Java\\jre1.8.0_161/lib/security/cacerts