-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.properties
102 lines (86 loc) · 6.12 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# To avoid specifying the port 8080
server.port=80
# JWT Configuration
# Secret key used for JWT token generation
jwt.secret=vomasalarokasdipAmit
# Issuer name to be included in JWT payload
jwt.issuer=mainMalakoHyitaRepresenterV2
# Expiration time for JWT token (in seconds)
# 60*60*24*30
jwt.expiration=2592000
# Image Dir Path setup
storage.image-dir-path=data/images/
# Allow bean definition overriding
spring.main.allow-bean-definition-overriding=true
# During development, the option ##1 was used to keep the database in RAM and initialize it from the data.sql file.
# Use the option ##2 for production.
## 1
#spring.datasource.url=jdbc:h2:mem:test
## 2
spring.datasource.url=jdbc:h2:file:./data/test;AUTO_SERVER=TRUE
# Database username
spring.datasource.username=admin
# Database password
spring.datasource.password=admin
# Database driver class name
spring.datasource.driver-class-name=org.h2.Driver
# Use this to access the h2-console to operate the database
# Enable H2 database console
spring.h2.console.enabled=true
# Path for accessing H2 console
spring.h2.console.path=/h2-console
# Hibernate DDL mode
spring.jpa.hibernate.ddl-auto=update
# Database dialect
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
# Defer datasource initialization
spring.jpa.defer-datasource-initialization=true
# Show SQL queries
spring.jpa.show-sql=false
# Generate DDL from entity classes
spring.jpa.generate-ddl=true
# If the second option ##2 was enabled, then set "never" instead of "always" in option ##3
## 3
# SQL initialization mode for H2 database
spring.sql.init.mode=always
# Database dialect for Hibernate
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
# Hibernate DDL mode
spring.jpa.properties.hibernate.hbm2ddl.auto=update
# Autocommit mode for Hibernate connection
spring.jpa.properties.hibernate-connection-autocommit=true
# Root logging level
logging.level.root=INFO
# Logging level for Spring Web
logging.level.org.springframework.web=INFO
# Logging level for Hibernate
logging.level.org.hibernate=INFO
# Pathname for the log file
logging.file.path=logs
# Filename for the log file
logging.file.name=logs/server.log
# Filepath for Actuators endpointus
management.endpoint.logfile.external-file=logs/server.log
# By default true, but anyway
management.endpoint.loggers.enabled=true
# Whitelabel Error Page.
# Thanks to the bugged Spring we had to enable whitelabel in order to enable our ErrorConfig
# Consider removing it since it is enabled by default
server.error.whitelabel.enabled=true
# REMOVE BEFORE DEADLINE
management.endpoints.web.exposure.include=*
# Swagger
springdoc.override-with-generic-response=false
# Log resolved exceptions
spring.mvc.log-resolved-exception=true
# Open session in view
spring.jpa.open-in-view=true
# Enable JMX
spring.jmx.enabled=true
# Encoding for messages
spring.messages.encoding=UTF-8
# Enables the possibility to connect to db remotely
spring.h2.console.settings.web-allow-others=true
# ------------------------------------ THIRD PARTIES API KEYS -----------------------------------------------
# Google Cloud identification encoded API key
spring.cloud.gcp.credentials.encoded-key=ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAibW93LWUtMzg0MzA3IiwKICAicHJpdmF0ZV9rZXlfaWQiOiAiNzU2OTc1OWE1YWViMzEwMTQxZThiMzgyNjA5ZmFmMWM0Zjk2OTE0OCIsCiAgInByaXZhdGVfa2V5IjogIi0tLS0tQkVHSU4gUFJJVkFURSBLRVktLS0tLVxuTUlJRXZnSUJBREFOQmdrcWhraUc5dzBCQVFFRkFBU0NCS2d3Z2dTa0FnRUFBb0lCQVFDdmtZK3FwbVZQY0pvUFxuTnVxbEhFQjBRVWJYbGlUTzZ0MmFwSGtnUmhNZ092NVVtNXd6N2hEVzRDRktST2xzUlhMSU1LLzBQZk9xdXdWVlxucG9yTStjbTVXRXYwMDB5RiswMzdmSmtlN2xKQ0N5b2ZraDlLcHlWQ0UvZXlqcEFp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