Skip to content
Extraits de code Groupes Projets
Valider 26f9e5af rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[UPD] rework odoo.conf

parent c2db872e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
[options] [options]
;; COMMON OPTIONS
addons_path = /opt/odoo/odoo/addons,/opt/odoo/additional_addons,/opt/odoo/private_addons addons_path = /opt/odoo/odoo/addons,/opt/odoo/additional_addons,/opt/odoo/private_addons
data_dir = /opt/odoo/data
; csv_internal_sep = ,
db_maxconn = {{ odoo_db_maxconn | default(64) }}
; db_template = template1
; dbfilter = .*
{% if odoo_prod is defined %} {% if odoo_prod is defined %}
admin_passwd = {{ odoo_prod.master_pass | password_hash('pbkdf2_sha512', 65534 | random(seed=inventory_hostname) | string) }} admin_passwd = {{ odoo_prod.master_pass | password_hash('pbkdf2_sha512', 65534 | random(seed=inventory_hostname) | string) }}
{% else %}
admin_passwd = {{ item.master_pass | password_hash('pbkdf2_sha512', 65534 | random(seed=inventory_hostname) | string) }}
{% endif %}
data_dir = /opt/odoo/data
{% if odoo_version == '12.0' or odoo_version == '14.0' %}
server_wide_modules = base,web,module_change_auto_install{% if odoo_server_wide_modules is defined %},{{ odoo_server_wide_modules }}{% endif %}
{% endif %}
without_demo = all
;; HTTP Service Configuration
; gevent_port = 8072
; http_enable = True
; http_interface =
; http_port = 8069
proxy_mode = True
; x_sendfile = False
;; Web interface Configuration
; dbfilter =
;; Logging Configuration
; log_db = False
; log_db_level = warning
; log_handler = [':INFO']
; log_level = info
; logfile = None
; syslog = False
;; SMTP Configuration
; email_from = False
; from_filter = False
; smtp_password = False
{% if mailname is defined %}
; smtp_port = 25
{% else %}
smtp_port=1025
{% endif %}
smtp_server = smtp
; smtp_ssl = False
; smtp_ssl_certificate_filename = False
; smtp_ssl_private_key_filename = False
; smtp_user = False
;; Database related options
{% if odoo_prod is defined %}
db_name = {{ odoo_prod.db }} db_name = {{ odoo_prod.db }}
db_password = {{ odoo_prod.db_pass }} db_password = {{ odoo_prod.db_pass }}
db_user = {{ odoo_prod.db_user }} db_user = {{ odoo_prod.db_user }}
{% else %} {% else %}
admin_passwd = {{ item.master_pass | password_hash('pbkdf2_sha512', 65534 | random(seed=inventory_hostname) | string) }}
db_name = {{ item.db }} db_name = {{ item.db }}
db_password = {{ item.db_pass }} db_password = {{ item.db_pass }}
db_user = {{ item.db_user }} db_user = {{ item.db_user }}
{% endif %} {% endif %}
; debug_mode = False ; db_template = template0
; email_from = False db_host = db
db_maxconn = {{ odoo_db_maxconn | default(64) }}
; db_sslmode = prefer
; pg_path =
;; Security-related options
; list_db = True
;; Advanced options
; geoip_database = /usr/share/GeoIP/GeoLite2-City.mmdb
; osv_memory_count_limit = 0
; transient_age_limit = 1.0
unaccent = True
;; Multiprocessing options
; limit_memory_hard = 2684354560 ; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648 ; limit_memory_soft = 2147483648
; limit_request = 8192 ; limit_request = 65536
limit_time_cpu = {{ odoo_limit_time_cpu | default(300) }} limit_time_cpu = {{ odoo_limit_time_cpu | default(300) }}
limit_time_real = {{ odoo_limit_time_real | default(600) }} limit_time_real = {{ odoo_limit_time_real | default(600) }}
; list_db = True ; limit_time_real_cron = -1
; load_language = fr_FR {% if ansible_processor_vcpus > 2 or odoo_prod.force_odoo_workers is defined %}
; log_db = False max_cron_threads = {{ ansible_processor_vcpus | int }}
; log_handler = [':INFO'] workers = {{ (ansible_processor_vcpus * 2 - 1) | int | abs }}
; log_level = info {% else %}
; logfile = None
; longpolling_port = 8072
; max_cron_threads = 2 ; max_cron_threads = 2
; workers = 0
{% endif %}
{% if odoo_version == '12.0' %} {% if odoo_version == '12.0' %}
;; Autoinstall options
modules_auto_install_disabled = account_facturx,mail_bot,web_unsplash{% if odoo_modules_auto_install_disabled is defined %},{{ odoo_modules_auto_install_disabled }}{% endif %} modules_auto_install_disabled = account_facturx,mail_bot,web_unsplash{% if odoo_modules_auto_install_disabled is defined %},{{ odoo_modules_auto_install_disabled }}{% endif %}
modules_auto_install_enabled = disable_odoo_online,mail_debrand,partner_disable_gravatar,partner_firstname,password_security,remove_odoo_enterprise,web_responsive,web_no_bubble{% if odoo_modules_auto_install_enabled is defined %},{{ odoo_modules_auto_install_enabled }}{% endif %} modules_auto_install_enabled = disable_odoo_online,lefilament_release_agent,mail_debrand,partner_disable_gravatar,partner_firstname,password_security,remove_odoo_enterprise,web_responsive,web_no_bubble{% if odoo_modules_auto_install_enabled is defined %},{{ odoo_modules_auto_install_enabled }}{% endif %}
{% endif %} {% endif %}
{% if odoo_version == '14.0' %} {% if odoo_version == '14.0' %}
;; Autoinstall options
modules_auto_install_disabled = account_edi,mail_bot,web_unsplash{% if odoo_modules_auto_install_disabled is defined %},{{ odoo_modules_auto_install_disabled }}{% endif %} modules_auto_install_disabled = account_edi,mail_bot,web_unsplash{% if odoo_modules_auto_install_disabled is defined %},{{ odoo_modules_auto_install_disabled }}{% endif %}
modules_auto_install_enabled = account_move_name_sequence,account_reconcile_show_boolean,account_reconciliation_widget,disable_odoo_online,mail_debrand,partner_disable_gravatar,partner_firstname,password_security,remove_login_links,remove_odoo_enterprise,web_responsive,web_no_bubble{% if odoo_modules_auto_install_enabled is defined %},{{ odoo_modules_auto_install_enabled }}{% endif %} modules_auto_install_enabled = account_move_name_sequence,account_reconcile_show_boolean,account_reconciliation_widget,disable_odoo_online,lefilament_release_agent,mail_debrand,partner_disable_gravatar,partner_firstname,password_security,remove_login_links,remove_odoo_enterprise,web_responsive,web_no_bubble{% if odoo_modules_auto_install_enabled is defined %},{{ odoo_modules_auto_install_enabled }}{% endif %}
{% endif %} {% endif %}
; osv_memory_age_limit = 1.0 {% if odoo_version == '16.0' %}
; osv_memory_count_limit = False
proxy_mode = True ;; Autoinstall options
{% if odoo_version == '12.0' or odoo_version == '14.0' %} modules_auto_install_disabled = account_edi,google_gmail,mail_bot,web_unsplash{% if odoo_modules_auto_install_disabled is defined %},{{ odoo_modules_auto_install_disabled }}{% endif %}
server_wide_modules = web,module_change_auto_install{% if odoo_server_wide_modules is defined %},{{ odoo_server_wide_modules }}{% endif %}
; to be updated once all modules are available
modules_auto_install_enabled = account_move_name_sequence,account_reconcile_oca,lefilament_release_agent,partner_disable_gravatar,partner_firstname,remove_login_links,web_theme_classic{% if odoo_modules_auto_install_enabled is defined %},{{ odoo_modules_auto_install_enabled }}{% endif %}
; modules_auto_install_enabled = account_move_name_sequence,account_reconcile_show_boolean,account_reconcile_oca,disable_odoo_online,lefilament_release_agent,mail_debrand,partner_disable_gravatar,partner_firstname,password_security,remove_login_links,remove_odoo_enterprise,web_responsive,web_no_bubble,web_theme_classic{% if odoo_modules_auto_install_enabled is defined %},{{ odoo_modules_auto_install_enabled }}{% endif %}
{% endif %} {% endif %}
; smtp_password = False
{% if mailname is defined %}
; smtp_port = 25
{% else %}
smtp_port=1025
{% endif %}
smtp_server = smtp
; smtp_ssl = False
; smtp_user = False
unaccent = True
without_demo = all
{% if ansible_processor_vcpus > 2 or odoo_prod.force_odoo_workers is defined %}
workers = {{ (ansible_processor_vcpus * 2 - 1) | int | abs }}
max_cron_threads = {{ ansible_processor_vcpus | int }}
{% else %}
; workers = 0
{% endif %}
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071
{% if odoo_extra_conf is defined %} {% if odoo_extra_conf is defined %}
;; Extra options
{{ odoo_extra_conf }} {{ odoo_extra_conf }}
{% endif %} {% endif %}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter