SteveLTN / https-portal

A fully automated HTTPS server powered by Nginx, Let's Encrypt and Docker.
MIT License
4.41k stars 295 forks source link

Nginx.conf setting #351

Open iCUE-Solutions opened 4 months ago

iCUE-Solutions commented 4 months ago

I'm running odoo in docker using HTTPS-portal for SSL support. All works fine, except the website editor. Turns out one must make the following change to the nginx.conf.

Question: can this be done via env variable?

How can I do it without recreating everything from scratch? Can I edit the running HTTPS-portal container and just start and stop?

Any help is greatly appreciated!

···

In the nginx conf file, you may add the line

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

to your location block.

···

SteveLTN commented 4 months ago

Checkout this section of the doc.

This is the source code where custom config are injected into the Nginx config.