[options]
; Продакшн конфигурация Odoo для Optovia

; Основные параметры
addons_path = /mnt/extra-addons,/usr/lib/python3/dist-packages/odoo/addons
admin_passwd = $pbkdf2-sha512$600000$admin_password_hash
csv_internal_sep = ,
data_dir = /var/lib/odoo
db_filter = ^odoo$
db_host = odoo-db
db_name = odoo
db_password = odoo_prod_2024
db_port = 5432
db_sslmode = prefer
db_user = odoo
db_maxconn = 64
dbfilter = ^odoo$

; HTTP сервер
http_enable = True
http_interface = 0.0.0.0
http_port = 8069
proxy_mode = True

; Логирование
log_handler = :INFO
log_level = info
logfile = None
syslog = False

; Производительность
limit_memory_hard = 2684354560
limit_memory_soft = 2147483648
limit_request = 8192
limit_time_cpu = 600
limit_time_real = 1200
limit_time_real_cron = -1
max_cron_threads = 2
workers = 4

; Безопасность
list_db = False
without_demo = False

; Локализация
translate_modules = ['all']

; Установленные модули при старте
init = fastapi,component,queue_job,pydantic,endpoint_route_handler

; Email
email_from = noreply@optovia.ru
smtp_server = localhost
smtp_port = 25
smtp_ssl = False
smtp_user = False
smtp_password = False

; Multiprocessing
server_wide_modules = base,web

; Кэширование
enable_redis = False