mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
✨ 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.
This commit is contained in:
@@ -259,3 +259,23 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user