Nginx, SSL and security
In production, users should reach Odoo on HTTPS through Nginx, not on port 8069.
- Install Nginx and create a server block that proxies
/to 127.0.0.1:8069 and/websocketto 127.0.0.1:8072 with the Upgrade headers. - Get a free certificate:
sudo certbot --nginx -d erp.example.com. - Set
proxy_mode = Truein odoo.conf. - 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.
Join this Course
to be the first to leave a comment.