List of Odoo 18 Configuration Parameters

Key Configuration Parameters in Odoo 18

by Dharmesh Patel

Properly configuring Odoo is crucial to optimising performance, enhancing security, and streamlining workflows. In this guide, we'll break down the most important Odoo 18 configuration parameters and explain their purpose in configuring your Odoo system.

When deploying Odoo 18, certain configurations can significantly impact how well the platform functions. From improving server performance to boosting security, the right parameters help configure Odoo's behaviour, including network settings, database options, logging, and more.

Here’s a comprehensive list of Odoo 18 configuration/config-file parameters that you can use in your odoo.conf file.

1. Network and Web Interface Options

Managing network configurations is key to ensuring that Odoo handles traffic efficiently and can scale as your user base grows. These options help optimise Odoo's network behaviour, ensuring fast and reliable access to your business-critical applications.

Parameter Description Example/Default Value
http_port Port on which Odoo will listen for HTTP requests. 8069
https To enable SSL/TLS for HTTPS connections. False
proxy_mode If Odoo is behind a reverse proxy (Nginx), set this to True. False
limit_request Maximum number of concurrent requests. 8192

2. Database Options

Proper database configuration ensures data integrity, security, and performance for businesses running Odoo with large datasets.

Parameter Description Example/Default Value
db_host Database server address. localhost
db_port Database server port. 5432
db_user PostgreSQL user. odoo
db_password Password for the database user. odoo
dbfilter Regular expression to match database names in multi-database setups. ^%d$ (matches domain name)
db_maxconn Maximum number of connections to the PostgreSQL database. 64

3. Logging Options

Effective logging is essential for troubleshooting and monitoring. These settings allow you to track system behaviour and debug issues quickly.

Parameter Description Example/Default Value
logfile Path to log file. /var/log/odoo/odoo.log
log_level Level of logging: info, debug, error, warn, critical. info
log_db Enable logging for database queries (can affect performance). False
log_db_level Log level for database. warning
syslog Log messages to syslog. False

4. Performance Options

Maximizing Odoo's performance is crucial for businesses with high traffic or complex operations. These parameters help manage memory, CPU usage, and worker processes.

Parameter Description Example/Default Value
limit_memory_hard Maximum hard memory limit (in bytes). 2684354560 (2.5 GB)
limit_memory_soft Soft memory limit (in bytes). 2147483648 (2 GB)
limit_time_cpu CPU time limit per request (in seconds). 60
limit_time_real Real-time limit per request (in seconds). 120
limit_time_real_cron Real-time limit for cron jobs (in seconds). 300
workers Number of worker processes for handling requests. 0 (multi-threaded mode)
max_cron_threads Number of cron worker threads. 2

5. Security Options

Security is paramount in any business system. Configuring these parameters ensures that your Odoo instance is protected from unauthorized access and data breaches.

Parameter Description Example/Default Value
admin_passwd Master password for database management (required). (Set this securely)
db_sslmode SSL mode for PostgreSQL connection. Options: disable, allow, prefer, require. prefer
session_gc Garbage collection interval for user sessions (in seconds). 3600

6. Email Options

Configuring the email settings allows Odoo to send emails, which is crucial for communication with customers, including order confirmations and notifications.

Parameter Description Example/Default Value
smtp_server SMTP server for sending email. localhost
smtp_port SMTP port. 25
smtp_ssl Use SSL for SMTP. False
smtp_user SMTP username. (None)
smtp_password SMTP password. (None)

7. Miscellaneous Options

These options help configure additional Odoo settings, such as file paths and add-on directories, which are crucial for module management.

Parameter Description Example/Default Value
data_dir Path to Odoo's data directory. /var/lib/odoo
addons_path Path to Odoo add-ons directory (can be multiple paths, comma-separated). /mnt/extra-addons,/usr/lib/python3/dist-packages/odoo/addons
server_wide_modules List of server-wide modules (comma-separated). web
without_demo Disable loading demo data during module installation. True or False

By properly configuring these Odoo 18 parameters, you can improve system performance, ensure secure operations, and maintain an optimal user experience. Whether you're running Odoo for an eCommerce business, a manufacturing company, or any other industry, using these parameters correctly will help your Odoo instance run efficiently and securely.

Need more development tips?

Stay tuned to our blog.

Dharmesh Patel 11 أكتوبر, 2024
أرشفة
تسجيل الدخول حتى تترك تعليقاً
Set Up Country-Specific Price Lists on Your Odoo Website