2016-10-19 20:53:54 +00:00
|
|
|
#
|
|
|
|
# this is the nginx config for zammad
|
|
|
|
#
|
|
|
|
|
|
|
|
upstream zammad {
|
|
|
|
server localhost:3000;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream zammad-websocket {
|
|
|
|
server localhost:6042;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
2016-10-29 19:28:03 +00:00
|
|
|
|
2016-10-26 09:04:36 +00:00
|
|
|
server_name localhost;
|
2016-10-29 19:28:03 +00:00
|
|
|
|
2016-10-19 20:53:54 +00:00
|
|
|
root /opt/zammad/public;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/zammad.access.log;
|
|
|
|
error_log /var/log/nginx/zammad.error.log;
|
|
|
|
|
|
|
|
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_read_timeout 86400;
|
|
|
|
proxy_pass http://zammad-websocket;
|
|
|
|
}
|
|
|
|
|
|
|
|
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://zammad;
|
|
|
|
|
|
|
|
gzip on;
|
2016-10-28 10:58:00 +00:00
|
|
|
gzip_types text/plain text/xml text/css image/svg+xml application/javascript application/x-javascript application/json application/xml;
|
2016-10-19 20:53:54 +00:00
|
|
|
gzip_proxied any;
|
|
|
|
}
|
|
|
|
}
|