switching to unix domain sockets
This commit is contained in:
parent
5a5168aa5e
commit
970f4dd03a
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue