Skip to Content

Nginx, SSL and security

In production, users should reach Odoo on HTTPS through Nginx, not on port 8069.

  1. Install Nginx and create a server block that proxies / to 127.0.0.1:8069 and /websocket to 127.0.0.1:8072 with the Upgrade headers.
  2. Get a free certificate: sudo certbot --nginx -d erp.example.com.
  3. Set proxy_mode = True in odoo.conf.
  4. Close port 8069 in the firewall: sudo ufw allow 'Nginx Full' and do not open 8069.

Security checklist

  • Strong master password and list_db = False
  • Two-factor authentication for admins (Settings > Permissions)
  • Regular OS updates
  • Separate system user for Odoo
  • Backups stored off the server
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.