sharelatex 671 B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 80;
  3. server_name _; # Catch all, see http://nginx.org/en/docs/http/server_names.html
  4. set $static_path /var/www/sharelatex/web/public;
  5. location / {
  6. proxy_pass http://localhost:3000;
  7. proxy_set_header Host $http_x_forwarded_host;
  8. proxy_http_version 1.1;
  9. proxy_set_header Upgrade $http_upgrade;
  10. proxy_set_header Connection "upgrade";
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_read_timeout 3m;
  13. proxy_send_timeout 3m;
  14. }
  15. location /stylesheets {
  16. expires 1y;
  17. root $static_path/;
  18. }
  19. location /minjs {
  20. expires 1y;
  21. root $static_path/;
  22. }
  23. location /img {
  24. expires 1y;
  25. root $static_path/;
  26. }
  27. }