Files
odoocker/odoo/odoo.example.conf
Fabio Tielen // Code Agency dddafd862f feat(.env.example): add configuration options for Redis caching in the .env.example file
 feat(docker-compose.yml): add keydb service for Redis caching with 1GB shared memory size
 feat(odoo.example.conf): add configuration options for Redis caching in the odoo.example.conf file
The changes were made to add support for Redis caching in the application. The .env.example file now includes configuration options for Redis caching, such as Redis host, port, password, URL, prefix, expiration time, and expiration time for anonymous sessions. The docker-compose.yml file now includes a keydb service with 1GB shared memory size for Redis caching. The odoo.example.conf file now includes configuration options for Redis caching, such as enabling Redis caching, Redis host, port, password, URL, prefix, expiration time, and expiration time for anonymous sessions. These changes allow the application to utilize Redis for caching, improving performance and scalability.
2023-09-04 23:54:39 +02:00

282 lines
5.9 KiB
Plaintext

[options]
;------------------------------------------;
; Options not exposed on the command line. ;
;------------------------------------------;
admin_passwd = {ADMIN_PASSWD}
csv_internal_sep = {CSV_INTERNAL_SEP}
publisher_warranty_url = {PUBLISHER_WARRANTY_URL}
root_path = {ROOT_PATH}
reportgz = {REPORTGZ}
websocket_keep_alive_timeout = {WEBSOCKET_KEEP_ALIVE_TIMEOUT}
websocket_rate_limit_burst = {WEBSOCKET_RATE_LIMIT_BURST}
websocket_rate_limit_delay = {WEBSOCKET_RATE_LIMIT_DELAY}
;-----------------------;
; Server startup config ;
;-----------------------;
; --config | -c
config = {ODOO_RC}
; --save
save = {SAVE}
; --init | -i
init = {INIT}
; --update | -u
update = {UPDATE}
; --without-demo
demo = {DEMO}
without_demo = {WITHOUT_DEMO}
; --import-partial
import_partial = {IMPORT_PARTIAL}
; --pidfile
pidfile = {PIDFILE}
; --addons-path
addons_path = {ADDONS_PATH}
; --upgrade-path
upgrade_path = {UPGRADE_PATH}
; --load
server_wide_modules = {SERVER_WIDE_MODULES}
; --data-dir
data_dir = {DATA_DIR}
;------;
; HTTP ;
;------;
; --http-interface | --xmlrpc-interface
http_interface = {HTTP_INTERFACE}
; --http-port | -p | --xmlrpc-port
http_port = {HTTP_PORT}
; --xmlrpcs-interface
xmlrpcs_interface = {XMLRPCS_INTERFACE}
; --xmlrpcs-port
xmlrpcs_port = {XMLRPCS_PORT}
; --gevent-port | --longpolling_port (deprecated)
gevent_port = {GEVENT_PORT}
longpolling_port = False
; --no-http | --no-xmlrpc
http_enable = {HTTP_ENABLE}
; --no-xmlrpcs
xmlrpcs = {XMLRPCS}
; --proxy-mode
proxy_mode = {PROXY_MODE}
; --x-sendfile
x_sendfile = {X_SENDFILE}
;---------------;
; Testing Group ;
;---------------;
; --test-file
test_file = {TEST_FILE}
; --test-enable
test_enable = {TEST_ENABLE}
; --test-tags
test_tags = {TEST_FILE}
; --screencasts
screencasts = {SCREENCASTS}
; --screenshots
screenshots = {SCREENSHOTS}
;---------------;
; Logging Group ;
;---------------;
; --logfile
logfile = {LOGFILE}
; --syslog
syslog = {SYSLOG}
; --log-handler | --log-web (--log-handler=odoo.http:DEBUG) | --log-sql (--log-handler=odoo.sql_db:DEBUG)
log_handler = {LOG_HANDLER}
; --log-db
log_db = {LOG_DB}
; --log-db-level
log_db_level = {LOG_DB_LEVEL}
; --log-level
log_level = {LOG_LEVEL}
;------------;
; SMTP Group ;
;------------;
; --email-from
email_from = {EMAIL_FROM}
; --from-filter
from_filter = {FROM_FILTER}
; --smtp
smtp_server = {SMTP_SERVER}
; --smtp-port
smtp_port = {SMTP_PORT}
; --smtp-ssl
smtp_ssl = {SMTP_SSL}
; --smtp-user
smtp_user = {SMTP_USER}
; --smtp-password
smtp_password = {SMTP_PASSWORD}
; --smtp-ssl-certificate-filename
smtp_ssl_certificate_filename = {SMTP_SSL_CERTIFICATE_FILENAME}
; --smtp-ssl-private-key-filename
smtp_ssl_private_key_filename = {SMTP_SSL_PRIVATE_KEY_FILENAME}
;----------;
; DB Group ;
;----------;
; --database | -d
db_name = {DB_NAME}
; --db_user | -r
db_user = {DB_USER}
; --db_password | -w
db_password = {DB_PASSWORD}
; --pg_path
pg_path = {PG_PATH}
; --db_host
db_host = {DB_HOST}
; --db_port
db_port = {DB_PORT}
; --db_sslmode
db_sslmode = {DB_SSLMODE}
; --db_maxconn
db_maxconn = {DB_MAXCONN}
; --db-template
db_template = {DB_TEMPLATE}
;------------------------------;
; Internationalisation options ;
;------------------------------;
; --load-language
load_language = {LOAD_LANGUAGE}
; --language
language = {LANGUAGE}
; --i18n-export
translate_out = {TRANSLATE_OUT}
; --i18n-import
translate_in = {TRANSLATE_IN}
; --i18n-overwrite
overwrite_existing_translations = {OVERWRITE_EXISTING_TRANSLATIONS}
; --modules
translate_modules = {TRANSLATE_MODULES}
;----------;
; Security ;
;----------;
; --no-database-list
list_db = {LIST_DB}
;-----;
; WEB ;
;-----;
; --db-filter
dbfilter = {DBFILTER}
;------------------;
; Advanced options ;
;------------------;
; --dev (all, reload, qweb, werkzeug, sql, shell, assets, tests)
dev_mode = {DEV_MODE}
; --shell-interface
shell_interface = {SHELL_INTERFACE}
; --stop-after-init
stop_after_init = {STOP_AFTER_INIT}
; --osv-memory-count-limit
osv_memory_count_limit = {OSV_MEMORY_COUNT_LIMIT}
; --transient-age-limit | --osv-memory-age-limit (deprecated)
transient_age_limit = {TRANSIENT_AGE_LIMIT}
; --max-cron-threads
max_cron_threads = {MAX_CRON_THREADS}
; --unaccent
unaccent = {UNACCENT}
; --geoip-db
geoip_database = {GEOIP_DATABASE}
; --workers
workers = {WORKERS}
; --limit-memory-soft
limit_memory_soft = {LIMIT_MEMORY_SOFT}
; --limit-memory-hard
limit_memory_hard = {LIMIT_MEMORY_HARD}
; --limit-time-cpu
limit_time_cpu = {LIMIT_TIME_CPU}
; --limit-time-real
limit_time_real = {LIMIT_TIME_REAL}
; --limit-time-real-cron
limit_time_real_cron = {LIMIT_TIME_REAL_CRON}
; --limit-request
limit_request = {LIMIT_REQUEST}
;------------------------------------------;
; Options not exposed on the command line. ;
;------------------------------------------;
; --ODOO_SESSION_REDIS
ODOO_SESSION_REDIS = {ODOO_SESSION_REDIS} ;has to be 1 or true
; --ODOO_SESSION_REDIS_HOST
ODOO_SESSION_REDIS_HOST = {ODOO_SESSION_REDIS_HOST} ;is the redis hostname (default is localhost)
; --ODOO_SESSION_REDIS_PORT
ODOO_SESSION_REDIS_PORT = {ODOO_SESSION_REDIS_PORT} ;is the redis port (default is 6379)
; --ODOO_SESSION_REDIS_PASSWORD
ODOO_SESSION_REDIS_PASSWORD = {ODOO_SESSION_REDIS_PASSWORD} ;is the password for the AUTH command (optional)
; -- ODOO_SESSION_REDIS_URL
ODOO_SESSION_REDIS_URL = {ODOO_SESSION_REDIS_URL} ;is an alternative way to define the Redis server address. It's the preferred way when you're using the rediss:// protocol.
; -- ODOO_SESSION_REDIS_PREFIX
ODOO_SESSION_REDIS_PREFIX = {ODOO_SESSION_REDIS_PREFIX} ;is the prefix for the session keys (optional)
; -- ODOO_SESSION_REDIS_EXPIRATION
ODOO_SESSION_REDIS_EXPIRATION = {ODOO_SESSION_REDIS_EXPIRATION} ;is the time in seconds before expiration of the sessions (default is 7 days)
; -- ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS
ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS = {ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS} ;the time in seconds before expiration of the anonymous sessions (default is 3 hours)