Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
30948 Представления

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


Thanks

Аватар
Отменить

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.

Лучший ответ

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

Аватар
Отменить
Лучший ответ

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. 

Аватар
Отменить