Skip to Content

The configuration file explained

Odoo reads its settings from a file passed with -c. The most important options:

[options]
admin_passwd = a-long-random-master-password
db_user = odoo19
db_password = False
addons_path = /opt/odoo19/odoo19/addons,/opt/odoo19/custom-addons
http_port = 8069
gevent_port = 8072
proxy_mode = True
workers = 5
max_cron_threads = 1
limit_memory_soft = 2147483648
limit_memory_hard = 2684354560
limit_time_cpu = 600
limit_time_real = 1200
list_db = False
logfile = /var/log/odoo19/odoo19.log
  • admin_passwd protects the database manager (create, backup, restore, delete databases).
  • addons_path lists every folder with modules, separated by commas.
  • workers above 0 turns on multi-process mode. Rule of thumb: (CPU cores x 2) + 1.
  • proxy_mode must be True behind Nginx so Odoo sees the real client IP and HTTPS.
  • list_db = False hides the database list on public servers.

After any change: sudo systemctl restart odoo19.

Questions about this lesson? Ask in our Odoo Help Forum or book a free call with a CloudPk consultant.
Rating
0 0

There are no comments for now.

to be the first to leave a comment.