Hello,
I have a problem with wkhtmltopdf on my server on my Ubuntu 16.04 and Odoo 11.
When I connect directly to the whhtmltopdf server works normally.
When I connect to Odoo via the reverse proxy (ngnix), I get a completely empty error message and no PDF.
The proxy backhand is on a separate machine with Ubuntu 18
The reversproxy is in https.
The configuration of my reversproxy is as follows:
Thank you for your help
upstream odoo_monsite {
server localIP:8069;
}
server {
server_name odoo.monsite.ch;
access_log /var/log/nginx/odoo.monsite.ch.access.log;
error_log /var/log/nginx/odoo.monsite.ch.error.log;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
client_max_body_size 50M;
location / {
proxy_pass http://odoo_monsite;
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 https;
proxy_connect_timeout 30;
proxy_send_timeout 30;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/odoo.monsite.ch/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/odoo.monsite.ch/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = odoo.monsite.ch) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name odoo.monsite.ch;
listen 80;
return 404; # managed by Certbot
}