-
Notifications
You must be signed in to change notification settings - Fork 1
/
application-mysql.properties
225 lines (177 loc) · 6.35 KB
/
application-mysql.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
################################################################################
#
# Application Configuration
#
################################################################################
# Database settings
# ~~~~~
#db.default.driver = org.postgresql.Driver
#db.default.ddl = update
#db.default.url = jdbc:postgresql://localhost:5432/axelor
#db.default.user = axelor
#db.default.password = axelor
# MySQL
db.default.driver = com.mysql.jdbc.Driver
db.default.ddl = update
db.default.url = jdbc:mysql://mysqldb:3306/axelor?useSSL=false
db.default.user = root
db.default.password = axelor
# Application Information
# ~~~~~
application.name = NoCode
application.description = DEV
application.version = 6.1.3
application.author = Shawoo
# link to be used with header logo
application.home = /
# application header logo, should be 40px in height
# ~~~~~
application.logo = img/axelor.png
# Set default language
application.locale = zh
# Set default CSS theme, for example `blue`
application.theme = modern
# Application Mode
# ~~~~~
# Set to 'dev' for development mode else 'prod'
application.mode = prod
# Date Format
# ~~~~~
date.format = yyyy/MM/dd/MM
# Timezone
# ~~~~~
date.timezone = Asia/Shanghai
# Menu
# ~~~~~
# Set menu style (left, top, both)
application.menu = both
# View options
# ~~~~~
application.view.toolbar-title = hide
# Link to the online help
# ~~~~~
application.help = /
# Application time out in minutes
# ~~~~~
session.timeout = 480
# Data export (csv) encoding
# ~~~~
# Use Windows-1252, ISO-8859-1 or ISO-8859-15 if targeting ms excel
# (excel does not recognize utf8 encoded csv)
data.export.encoding = ISO-8859-15
# Encrypted fields
# ~~~~
# Old encryption password for migration
#encryption.password.old = *****
# Encryption password
# ENSURE THAT YOU DON'T LOSE IT.
# If you lose this password, you will be unable to access variables stored in database.
encryption.password = MySuperSecretKey
# Algorithm mode (CBC or GCM)
encryption.algorithm = CBC
# User password pattern
# ~~~~
# at least 8 characters with at least three of these four types: lowercase, uppercase, digit, special
user.password.pattern = (((?=.*[a-z])(?=.*[A-Z])(?=.*\\d))|((?=.*[a-z])(?=.*[A-Z])(?=.*\\W))|((?=.*[a-z])(?=.*\\d)(?=.*\\W))|((?=.*[A-Z])(?=.*\\d)(?=.*\\W))).{8,}
# Storage path for export action
# ~~~~~
data.export.dir = /app/data/exports
# Storage path for upload files (attachments)
# ~~~~~
# use {user.home} key to save files under user home directory, or
# use absolute path where server user have write permission.
file.upload.dir = /app/data/attachments
# Maximum upload size (in MB)
# ~~~~~
file.upload.size = 5
# Indicate if the birt engine to use is the embedded engine or external engine
# Default : true
# ~~~~~
axelor.report.use.embedded.engine =
# Link to report enginePath (external engine)
# Example : http://localhost:8080/birt
# Default : {webapps server}/birt
# ~~~~~
axelor.report.engine =
# Reports resource path (external engine)
# Default : report
# ~~~~~
axelor.report.resource.path =
# external directory for birt rptdesign (internal engine)
# if the directory does not exist or the report is not found
# then reports in axelor modules will be used.
reports.design.dir = /app/data/reports
# Reports custom fonts path
reports.fonts.config = fonts/ReportFonts.xml
# Enable/disable demo data
# ~~~~~
data.import.demo-data = false
# Custom context values
# ~~~~~
context.app = com.axelor.apps.base.service.app.AppService
context.appLogo = com.axelor.apps.base.service.user.UserService:getUserActiveCompanyLogoLink
# Hibernate full-text search
# ~~~~~
hibernate.search.default.directory_provider = none
#hibernate.search.default.directory_provider = filesystem
hibernate.search.default.indexBase = /app/data/indexes
# HikariCP connection pool
# ~~~~~
hibernate.hikari.minimumIdle = 1
hibernate.hikari.maximumPoolSize = 10
hibernate.hikari.idleTimeout = 300000
# CORS configuration to allow cross origin requests
# ~~~~~
# regular expression to test allowed origin or * to allow all (not recommended)
cors.allow.origin = *
cors.allow.credentials = true
cors.allow.methods = GET,PUT,POST,DELETE,HEAD,OPTIONS
cors.allow.headers = Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers
# Logging
# ~~~~~
# Custom logback configuration can be provided with `logging.config` property pointing
# to a custom `logback.xml`. In this case, all the logging configuration provided here
# will be ignored.
#
# Following settings can be used to configure logging system automatically.
#
logging.path = /app/data/logs
logging.pattern.file = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n
logging.pattern.console = %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n
logging.level.root = ERROR
logging.level.com.axelor = INFO
# Log everything. Good for troubleshooting
#logging.level.org.hibernate = INFO
# Log all SQL DML statements as they are executed
#logging.level.org.hibernate.SQL = DEBUG
#logging.level.org.hibernate.engine.jdbc = DEBUG
# Log all SQL DDL statements as they are executed
#logging.level.org.hibernate.tool.hbm2ddl = INFO
# Log all JDBC parameters
#logging.level.org.hibernate.type = ALL
# Log transactions
#logging.level.org.hibernate.transaction = DEBUG
# Log L2-Cache
#logging.level.org.hibernate.cache = DEBUG
# Log JDBC resource acquisition
#logging.level.org.hibernate.jdbc = TRACE
#logging.level.org.hibernate.service.jdbc = TRACE
# Log connection pooling
#logging.level.com.zaxxer.hikari = INFO
# Quartz scheduler
# ~~~~~
quartz.enable = true
quartz.threadCount = 5
# Allows to open maximum 10 Tabs
view.tabs.max = 10
#Activate global tracking log feature (track data modification/access in compliance with GDPR)
hibernate.session_factory.interceptor = com.axelor.apps.base.tracking.GlobalAuditInterceptor
# Get today date according to the active user's active company's timezone
context.date = com.axelor.apps.base.service.DateService:date
# Class to provide custom CSS style for user interface
context.appStyle = com.axelor.apps.base.service.app.AppBaseService:getCustomStyle
# Enable globally grid view customization
# Defaults to true: this feature is enabled by default, uncomment to disable
#view.customization = false
db.default.dialect = org.hibernate.dialect.PostgreSQLDialect
temp.dir = /app/data/tmp