default-init.j2 625 B

123456789101112131415161718192021
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name _;
  5. root /var/www/html;
  6. index index.html;
  7. location / {
  8. # First attempt to serve request as file, then
  9. # as directory, then fall back to displaying a 404.
  10. try_files $uri $uri/ =404;
  11. gzip_types text/plain text/css application/json application/javascript;
  12. }
  13. location /data {
  14. expires 0;
  15. add_header Cache-Control private;
  16. add_header Vary Accept-Encoding;
  17. access_log off;
  18. gzip_types text/plain application/json;
  19. }
  20. }