What may be the correct Config for a NGINX as reverseproxy for Zammad? I have config, wich allows me to open the Webfrontend, but the Chat is not working.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name helpdesk2.ebel.local;
server_name helpdesk.ebel.local;
error_log /var/log/nginx/helpdesk-error.log;
access_log /var/log/nginx/helpdesk-access.log;
ssl_certificate /etc/ssl/certs/helpdesk.ebel.local.pem;
ssl_certificate_key /etc/ssl/private/helpdesk2.ebel.local.key.pem;
include /etc/ssl/options-ssl-nginx.conf;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_verify_client off;
# Set global proxy settings
proxy_read_timeout 360;
client_max_body_size 50M;
location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) {
expires max;
}
location /ws {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header CLIENT_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://172.30.0.35;
}
location / {
proxy_set_header Host $http_host;
proxy_set_header CLIENT_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://172.30.0.35:8080;
gzip on;
gzip_types text/plain text/xml text/css image/svg+xml application/javascript application/x-javascript application/json application/xml;
gzip_proxied any;
}
}
I guess the reason why the chat doesnt work, is because a wrong reverse Proxy config.