Skip to Content
Menu
This question has been flagged
3 Replies
5989 Views

Hello Everyone,

My company has decided to start using Odoo, we decided to host it ourselves in our AWS environment.  I have launched the instance (Ubuntu 18.04) and have Odoo 12 (community edition) installed correctly (I was able to get to the initial setup web page). But before doing that setup I wanted to setup Odoo to use https and to pass through our existing Nginx reverse proxy. I believe I have the server block is setup correctly on Nginx (the output of curl confirms that). But I'm getting a 502 error from Nginx, I believe this is due to the fact that the web server on the Odoo box is not looking at the correct SSL certs for our domain (curl output on the Odoo box seems to indicate that too). So I'm trying to figure out where I can tell the Odoo web server what SSL certs to look for. I've found multiple howtos on how to setup a Nginx reverse proxy work with Odoo but they all seem to assume that Nginx is installed on the same box as Odoo. My understanding is that Odoo has a builtin webserver, but I cannot seem to find any config files for it. Has anyone been successful in getting Odoo served through a reverse proxy on a separate server? Any help that you folks could give me would be great, thanks.

Avatar
Discard
Author Best Answer

Found the answer myself after some more Googling.  For those that find this post in the future, it seems Odoo's built-in web server doesn't not serve HTTPS, for that you need to setup a separate web server (nginx, apache, etc) on the same box as Odoo to server HTTPs and pass that to Odoo. So in our setup we have a separate Nginx reverse proxy box in front of our Odoo box which is running Nginx in front of Odoo.

Avatar
Discard
Best Answer

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

Avatar
Discard
Best Answer

hello,  would you share how did you solve it?   thanks.

Avatar
Discard