zammad.conf 806 B

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # this is the nginx config for zammad
  3. # link this file in your sites-enabled via symlink (ln -s nginx-zammad.conf /etc/nginx/sites-enabled/zammad.conf)
  4. #
  5. server {
  6. listen 80;
  7. server_name your.domain.org;
  8. root /opt/zammad/public;
  9. access_log /var/log/nginx/zammad.access.log;
  10. error_log /var/log/nginx/zammad.error.log;
  11. client_max_body_size 50M;
  12. location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) {
  13. expires max;
  14. }
  15. location /ws {
  16. proxy_http_version 1.1;
  17. proxy_set_header Upgrade $http_upgrade;
  18. proxy_set_header Connection "Upgrade";
  19. proxy_pass http://localhost:6042;
  20. proxy_read_timeout 86400;
  21. }
  22. location / {
  23. proxy_set_header Host $host;
  24. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  25. proxy_pass http://localhost:3000;
  26. }
  27. }