switching to unix domain sockets

This commit is contained in:
Roy Kaldung 2014-05-02 11:29:43 +02:00
parent 5a5168aa5e
commit 970f4dd03a

View file

@ -13,6 +13,10 @@ server {
error_log /var/log/nginx/zammad.error.log;
client_max_body_size 50M;
upstream zammad {
server unix://opt/zammad/var/zammad.sock
}
location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) {
expires max;
@ -28,6 +32,6 @@ server {
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:3000;
proxy_pass http://zammad;
}
}