Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Odoo 10 letsencrypt nginx
by
MISYL SERVICES., Michael Delvoye
Hi everybody,
--
I try to implement letsencrypt on a nginx as a revers proxy but i fail.
I have the excellent book ODOO_10_DEVELOPMENT_ESSENTIALS but i turn around with no solution
If one of you has an idea so as to help, it would be nice.
Here my basic conf file
server {
listen 80 default;
server_name xxxx.misyl.net;
location / {
proxy_pass http://127.0.0.1:9000;
#allow xx.xx.xx.xx;
#allow xx.xx.xx.xx;
#deny all;
}
}
server {
listen 443 default;
server_name xxxx.misyl.net
# ssl settings
ssl on;
ssl_certificate /etc/letsencrypt/live/xxxx.misyl.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xxxx.misyl.net/privkey.pem;
keepalive_timeout 60;
# proxy header and settings
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
location / {
proxy_pass http://127.0.0.1:9000;
}
}
thanks for your help.
Michael Delvoye
Directeur Technique
MISYL SERVICES