Small improvements.
This commit is contained in:
parent
124b97d327
commit
311a9115d2
|
@ -24,9 +24,12 @@ http {
|
||||||
|
|
||||||
#access_log logs/access.log main;
|
#access_log logs/access.log main;
|
||||||
|
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
#tcp_nopush on;
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
client_max_body_size 50M;
|
||||||
|
|
||||||
#keepalive_timeout 0;
|
#keepalive_timeout 0;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
proxy_cache_path /tmp/nginx/cache/ levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
|
proxy_cache_path /tmp/nginx/cache/ levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
|
||||||
|
@ -36,7 +39,7 @@ http {
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_min_length 1000;
|
gzip_min_length 1000;
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
gzip_types text/plain text/html text/css text/xml application/json application/x-javascript application/xml application/xml+rss text/javascript;
|
||||||
gzip_buffers 16 8k;
|
gzip_buffers 16 8k;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
|
@ -1,28 +1,25 @@
|
||||||
upstream zammad {
|
|
||||||
server localhost:9292;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
root path_/to_/zammad;
|
root /path_/to_/zammad;
|
||||||
|
|
||||||
|
|
||||||
location /ws {
|
location /ws {
|
||||||
proxy_pass http://localhost:6042;
|
proxy_pass http://localhost:6042;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_read_timeout 86400;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) {
|
location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) {
|
||||||
root path_/to_/zammad/public;
|
root /path_/to_/zammad/public;
|
||||||
access_log off;
|
access_log off;
|
||||||
expires max;
|
expires max;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://zammad; # match the name of upstream directive which is defined above
|
proxy_pass http://localhost:9292;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue