|
|
|
@ -300,18 +300,24 @@ Cache-Control: max-age=31536000,immutable
|
|
|
|
|
server {
|
|
|
|
|
gzip on;
|
|
|
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
|
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name _;
|
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
# content location
|
|
|
|
|
root /app;
|
|
|
|
|
|
|
|
|
|
# exact matches -> reverse clean urls -> folders -> not found
|
|
|
|
|
try_files $uri $uri.html $uri/ =404;
|
|
|
|
|
|
|
|
|
|
# non existent pages
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
|
|
|
|
|
|
# a folder without index.html raises 403 in this setup
|
|
|
|
|
error_page 403 /404.html;
|
|
|
|
|
|
|
|
|
|
# adjust caching headers
|
|
|
|
|
# files in the assets folder have hashes filenames
|
|
|
|
|
location ~* ^/assets/ {
|
|
|
|
|