-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication_example.properties
More file actions
46 lines (35 loc) · 1.35 KB
/
application_example.properties
File metadata and controls
46 lines (35 loc) · 1.35 KB
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
spring.thymeleaf.suffix=.html
spring.thymeleaf.model=HTML
spring.thymeleaf.encoding=UTF-8
# File service
file-server.root-directory=./files
file-server.max-upload-size=100MB
file-server.allowed-extensions=pdf,txt,doc,docx,xls,xlsx,jpg,jpeg,png,gif,zip,rar
# Files uploading
spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB
# Spring
spring.main.allow-bean-definition-overriding=true
# Database Configuration
spring.datasource.url=jdbc:<mariadb|mysql>://<IP>:<PORT>/FileServer2
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
server.error.include-stacktrace=always
debug=true
server.port=8888
logging.level.org.thymeleaf=DEBUG
# Lombok logging
lombok.extern.findbugs.add-supress-warnings=true
# JPA
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.properties.hibernate.auto_quote_keyword=false
# JWT
jwt.secret=jwt_secret_key
jwt.expiration=3600000
jwt.refreshExpiration=604800000