Odoo is one the of hottest enterprise softwares on this planet and it’s filled with a number of helpful modules like buyer relationship administration (CRM), level of sale, challenge administration, stock administration, automated invoicing, accounting, e-commerce, stock administration and way more.
Odoo comes with a built-in internet server, however generally it is strongly recommended to have a reverse proxy in entrance of it which is able to act as an middleman between the purchasers and the Odoo server.
This information offers directions on tips on how to use Nginx as a SSL termination and reverse proxy to Odoo.
Just remember to have met the next stipulations earlier than persevering with with this tutorial:
- You will have Odoo put in, if not you could find the directions right here
- You will have a site identify pointing to your Odoo set up. On this article we’ll use
- You will have Nginx put in, if not test this information.
- You will have a SSL certificates put in in your area. You’ll be able to set up a free Let’s Encrypt SSL certificates by following this information.
Configure Nginx as a Reverse Proxy
Utilizing a reverse proxy provides you plenty of advantages resembling Load Balancing, SSL Termination, Caching, Compression, Serving Static Content material and extra.
On this instance we’ll configure SSL Termination, HTTP to HTTPS redirection, cache the static information and allow GZip compression.
Beneath is a pattern nginx configuration file (server block ) that you should utilize in your Odoo set up. All of the HTTP requests shall be redirected to HTTPS .
Open your textual content editor and create the next file:
$ sudo nano /and so forth/nginx/sites-enabled/odoo.instance.com
Don’t neglect to interchange odoo.instance.com together with your Odoo area and set the proper path for the SSL certificates information.
As soon as you’re executed save the file and restart the Nginx service with:
$ sudo systemctl restart nginx
Change the binding interface
This step is optionally available, however it’s a good safety observe.
By default, Odoo server listens to port
8069 on all interfaces. If you wish to disable direct entry to your Odoo occasion open the Odoo configuration file and add the next two strains on the finish of the file:
xmlrpc_interface = 127.0.0.1 netrpc_interface = 127.0.0.1
Save the configuration file and restart the Odoo server for the modifications to take impact:
$ systemctl restart odoo
On this tutorial you realized tips on how to configure Nginx as a Proxy to your Odoo software. You too can examine Tips on how to Setup Automated Odoo Backups