zammad_nginx.conf 535 B

12345678910111213141516171819202122
  1. server {
  2. listen 80;
  3. server_name SERVER_NAME;
  4. root /opt/zammad/zammad/public;
  5. location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) {
  6. expires max;
  7. }
  8. location /ws {
  9. proxy_http_version 1.1;
  10. proxy_set_header Upgrade $http_upgrade;
  11. proxy_set_header Connection "Upgrade";
  12. proxy_pass http://localhost:6042;
  13. }
  14. location / {
  15. proxy_set_header Host $host;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_pass http://localhost:3000;
  18. }
  19. }