No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-nginx.conf.sigil 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. worker_processes 1;
  2. error_log stderr;
  3. pid nginx.pid;
  4. daemon off;
  5. events {
  6. worker_connections 768;
  7. }
  8. http {
  9. types_hash_max_size 2048;
  10. include mime.types;
  11. server {
  12. listen {{ $.PORT }};
  13. server_name _;
  14. {{ if ne $.NGINX_ROOT "" }}
  15. root /app/www/{{ $.NGINX_ROOT }};
  16. {{ else }}
  17. root /app/www;
  18. {{ end }}
  19. index index.html;
  20. port_in_redirect off;
  21. error_page 404 /errors/404/index.html;
  22. gzip off;
  23. gzip_disable "msie6";
  24. gzip_vary on;
  25. gzip_proxied any;
  26. gzip_comp_level 6;
  27. gzip_buffers 16 8k;
  28. gzip_http_version 1.1;
  29. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  30. location / {
  31. try_files $uri $uri/ /index.html;
  32. }
  33. location ~* \.(?:css|js|woff|svg|gif)$ {
  34. try_files $uri /index.php$uri$is_args$args;
  35. add_header Cache-Control "public, max-age=7200";
  36. add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
  37. add_header X-Content-Type-Options nosniff;
  38. add_header X-Frame-Options "SAMEORIGIN";
  39. add_header X-XSS-Protection "1; mode=block";
  40. add_header X-Robots-Tag none;
  41. add_header X-Download-Options noopen;
  42. add_header X-Permitted-Cross-Domain-Policies none;
  43. access_log off;
  44. }
  45. location ~* \.(?:png|html|ttf|ico|jpg|jpeg|otf)$ {
  46. try_files $uri /index.php$uri$is_args$args;
  47. access_log off;
  48. }
  49. }
  50. }