diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..a15f8d1 --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,23 @@ +server { + listen 8080; + client_max_body_size 100M; + set $csp_header CSP_HEADER; + + add_header Content-Security-Policy $csp_header; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; + + gzip on; + gzip_comp_level 4; + gzip_types text/css application/javascript; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file