Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
30935 Prikazi

Hello, I am using odoo and would like to know if we can enable apache2 https on odoo.


Thanks

Avatar
Opusti

There are lots of blogs written to add SSL using ssh. It has nothing to do with Odoo.

You need to buy the ssl certificate (or generate free ssl certificate) and configure it in appache.

Just give it a try and if you have any issue, post your configuration files and error you are facing.

Best Answer

To enable https in Odoo you have to put Odoo behind a server like Apatche and Enginx. Whether it’s accessed via website/web client or web service, Odoo transmits authentication information in cleartext. 

This means a secure deployment of Odoo must use HTTPS.
 SSL termination can be implemented via just about any SSL termination proxy, but requires the following setup:

    - Enable Odoo’s proxy mode. This should only be enabled when Odoo is behind a reverse proxy

    - Set up the SSL termination proxy (Nginx termination example)

    - Set up the proxying itself (Nginx proxying example)

    - Your SSL termination proxy should also automatically redirect non-secure connections to the secure port


Here is the a link to Configuration Sample from Odoo Docs.


Also see: How To Configure SSL For Domain | Enable Https For Odoo Instance | Secure Nginx with Let's Encrypt

Avatar
Opusti
Best Answer

Just add this line on your nginx config file, on server block. It hangs because a request is send over http instead of https.

add_header 'Content-Security-Policy' 'upgrade-insecure-requests'; 

I tried with Odoo 16 CE, on ubuntu 22.04, and it works fine. 

Avatar
Opusti