nginx-zammad.conf 939 B

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