-
Notifications
You must be signed in to change notification settings - Fork 92
/
odoo.conf
executable file
·385 lines (315 loc) · 10.8 KB
/
odoo.conf
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
[options]
; ===================
; | Common options) |
; ===================
; ------
; -c / --config | specify alternate config file
; ------
; config =
; ------
; -s / --save | save configuration to ~/.odoorc (or to ~/.openerp_serverrc if it exists)
; ------
; save =
; ------
; -i / --init | install one or more modules (comma-separated list, use "all" for all modules), requires -d
; ------
; init =
; ------
; -u / --update | update one or more modules (comma-separated list, use "all" for all modules). Requires -d.
; ------
; update =
; ------
; --without-demo | disable loading demo data for modules to be installed (comma-separated, use "all" for all modules). Requires -d and -i. Default is %default
; ------
; without_demo =
; ------
; -P / --import-partial | Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.
; ------
; import_partial =
; ------
; --pidfile | file where the server pid will be stored
; ------
; pidfile =
; ------
; --addons-path | type = string | specify additional addons paths (separated by commas).
; ------
addons_path = /mnt/extra-addons
; ------
; --load | Comma-separated list of server-wide modules.
; ------
; server_wide_modules = base,web
; ------
; -D / --data-dir | Directory where to store Odoo data
; ------
data_dir = /etc/odoo
admin_passwd = minhng.info
; ==============================
; | HTTP Service Configuration |
; ==============================
; ------
; --http-interface | Listen interface address for HTTP services. Keep empty to listen on all interfaces (0.0.0.0)
; ------
; http_interface =
; ------
; -p / --http-port | type = int | Listen port for the main HTTP service
; ------
; http_port = 8069
; ------
; --longpolling-port | type = int | Listen port for the longpolling HTTP service
; ------
; longpolling_port = 8072
; ------
; --no-http | Disable the HTTP and Longpolling services entirely
; ------
; http_enable = True
; ------
; --proxy-mode | Activate reverse proxy WSGI wrappers (headers rewriting) Only enable this when running behind a trusted web proxy!
; ------
; proxy_mode =
; ------
; --xmlrpc-interface | SUPPRESSHELP
; ------
; http_interface =
; ------
; --xmlrpc-port | type = int | SUPPRESSHELP
; ------
; http_port =
; ------
; --no-xmlrpc | SUPPRESSHELP
; ------
; http_enable =
; ===============================
; | Web interface Configuration |
; ===============================
; ------
; --db-filter | Regular expressions for filtering available databases for Web UI. The expression can use %d (domain) and %h (host) placeholders.
; ------
; dbfilter =
; =========================
; | Testing Configuration |
; =========================
; ------
; --test-file | Launch a python test file.
; ------
; test_file =
; ------
; --test-enable | Enable unit tests.
; ------
; test_enable =
; ------
; --test-tags | Comma separated list of spec to filter which tests to execute. Enable unit tests if set. A filter spec has the format: [-][tag][/module][:class][.method] The '-' specifies if we want to include or exclude tests matching this spec. The tag will match tags added on a class with a @tagged decorator. By default tag value is 'standard' when not given on include mode. '*' will match all tags. Tag will also match module name (deprecated, use /module) The module, class, and method will respectively match the module name, test class name and test method name. examples: :TestClass.test_func,/test_module,external
; ------
; test_tags =
; =========================
; | Logging Configuration |
; =========================
; ------
; --logfile | file where the server log will be stored
; ------
logfile = /etc/odoo/odoo-server.log
; ------
; --logrotate | enable logfile rotation
; ------
; logrotate =
; ------
; --syslog | Send the log to the syslog server
; ------
; syslog =
; ------
; --log-handler | setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "odoo.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")
; ------
; None = :INFO
; ------
; --log-request | shortcut for --log-handler=odoo.http.rpc.request:DEBUG
; ------
; log_handler =
; ------
; --log-response | shortcut for --log-handler=odoo.http.rpc.response:DEBUG
; ------
; log_handler =
; ------
; --log-web | shortcut for --log-handler=odoo.http:DEBUG
; ------
; log_handler =
; ------
; --log-sql | shortcut for --log-handler=odoo.sql_db:DEBUG
; ------
; log_handler =
; ------
; --log-db | Logging database
; ------
; log_db =
; ------
; --log-db-level | Logging database level
; ------
; log_db_level = warning
; ------
; --log-level | type = choice | choices = ['info', 'debug_rpc', 'warn', 'test', 'critical', 'debug_sql', 'error', 'debug', 'debug_rpc_answer', 'notset'] | specify the level of the logging. Accepted values: ['info', 'debug_rpc', 'warn', 'test', 'critical', 'debug_sql', 'error', 'debug', 'debug_rpc_answer', 'notset'].
; ------
; log_level = info
; ======================
; | SMTP Configuration |
; ======================
; ------
; --email-from | specify the SMTP email address for sending email
; ------
; email_from =
; ------
; --smtp | specify the SMTP server for sending email
; ------
; smtp_server = localhost
; ------
; --smtp-port | type = int | specify the SMTP port
; ------
; smtp_port = 25
; ------
; --smtp-ssl | if passed, SMTP connections will be encrypted with SSL (STARTTLS)
; ------
; smtp_ssl =
; ------
; --smtp-user | specify the SMTP username for sending email
; ------
; smtp_user =
; ------
; --smtp-password | specify the SMTP password for sending email
; ------
; smtp_password =
; ============================
; | Database related options |
; ============================
; ------
; -d / --database | specify the database name
; ------
; db_name =
; ------
; -r / --db_user | specify the database user name
; ------
; db_user =
; ------
; -w / --db_password | specify the database password
; ------
; db_password =
; ------
; --pg_path | specify the pg executable path
; ------
; pg_path =
; ------
; --db_host | specify the database host
; ------
; db_host =
; ------
; --db_port | type = int | specify the database port
; ------
; db_port =
; ------
; --db_sslmode | type = choice | choices = ['disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full'] | specify the database ssl connection mode (see PostgreSQL documentation)
; ------
; db_sslmode = prefer
; ------
; --db_maxconn | type = int | specify the maximum number of physical connections to PostgreSQL
; ------
; db_maxconn = 64
; ------
; --db-template | specify a custom database template to create a new database
; ------
; db_template = template0
; ========================
; | Internationalisation |
; ========================
; ------
; --load-language | specifies the languages for the translations you want to be loaded
; ------
; load_language =
; ------
; -l / --language | specify the language of the translation file. Use it with --i18n-export or --i18n-import
; ------
; language =
; ------
; --i18n-export | export all sentences to be translated to a CSV file, a PO file or a TGZ archive and exit
; ------
; translate_out =
; ------
; --i18n-import | import a CSV or a PO file with translations and exit. The '-l' option is required.
; ------
; translate_in =
; ------
; --i18n-overwrite | overwrites existing translation terms on updating a module or importing a CSV or a PO file.
; ------
; overwrite_existing_translations =
; ------
; --modules | specify modules to export. Use in combination with --i18n-export
; ------
; translate_modules =
; ============================
; | Security-related options |
; ============================
; ------
; --no-database-list | Disable the ability to obtain or view the list of databases. Also disable access to the database manager and selector, so be sure to set a proper --database parameter first
; ------
; list_db = True
; ====================
; | Advanced options |
; ====================
; ------
; --dev | type = string | Enable developer mode. Param: List of options separated by comma. Options : all, [pudb|wdb|ipdb|pdb], reload, qweb, werkzeug, xml
; ------
dev_mode = reload
; ------
; --shell-interface | type = string | Specify a preferred REPL to use in shell mode. Supported REPLs are: [ipython|ptpython|bpython|python]
; ------
; shell_interface =
; ------
; --stop-after-init | stop the server after its initialization
; ------
; stop_after_init =
; ------
; --osv-memory-count-limit | type = int | Force a limit on the maximum number of records kept in the virtual osv_memory tables. The default is False, which means no count-based limit.
; ------
; osv_memory_count_limit =
; ------
; --osv-memory-age-limit | type = float | Force a limit on the maximum age of records kept in the virtual osv_memory tables. This is a decimal value expressed in hours, and the default is 1 hour.
; ------
; osv_memory_age_limit = 1.0
; ------
; --max-cron-threads | type = int | Maximum number of threads processing concurrently cron jobs (default 2).
; ------
; max_cron_threads = 2
; ------
; --unaccent | Use the unaccent function provided by the database when available.
; ------
; unaccent =
; ------
; --geoip-db | Absolute path to the GeoIP database file.
; ------
; geoip_database = /usr/share/GeoIP/GeoLite2-City.mmdb
; ===========================
; | Multiprocessing options |
; ===========================
; ------
; --workers | type = int | Specify the number of workers, 0 disable prefork mode.
; ------
; workers =
; ------
; --limit-memory-soft | type = int | Maximum allowed virtual memory per worker, when reached the worker be reset after the current request (default 2048MiB).
; ------
; limit_memory_soft = 2147483648
; ------
; --limit-memory-hard | type = int | Maximum allowed virtual memory per worker, when reached, any memory allocation will fail (default 2560MiB).
; ------
; limit_memory_hard = 2684354560
; ------
; --limit-time-cpu | type = int | Maximum allowed CPU time per request (default 60).
; ------
; limit_time_cpu = 60
; ------
; --limit-time-real | type = int | Maximum allowed Real time per request (default 120).
; ------
; limit_time_real = 120
; ------
; --limit-time-real-cron | type = int | Maximum allowed Real time per cron job. (default: --limit-time-real). Set to 0 for no limit.
; ------
; limit_time_real_cron = -1
; ------
; --limit-request | type = int | Maximum number of request to be processed per worker (default 8192).
; ------
; limit_request = 8192