Skip to content

Commit

Permalink
Strict exact match
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 2, 2024
1 parent 3bedcf4 commit ce0e396
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions api/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,19 @@ http {
add_header 'Content-Security-Policy' "default-src 'self' *.API_URL; ${IMG}; ${WORKER}; ${CONNECT}; ${STYLE_SRC_ATTR}; ${STYLE_SRC_ELEM}; ${FONT}; upgrade-insecure-requests;" always;

location = / {
alias /home/etl/api/web/dist/;
autoindex on;

add_header 'X-Content-Type-Options' 'nosniff' always;
add_header 'X-Frame-Options' 'DENY' always;
add_header 'Referrer-Policy' 'strict-origin-when-cross-origin' always;
add_header 'Strict-Transport-Security' 'max-age=31536000; includeSubDomains; preload' always;
add_header 'Permissions-Policy' 'fullscreen=(self), geolocation=(self), clipboard-read=(self), clipboard-write=(self)' always;
add_header 'Content-Security-Policy' "default-src 'self' *.API_URL; ${IMG}; ${WORKER}; ${CONNECT}; ${STYLE_SRC_ATTR}; ${STYLE_SRC_ELEM}; ${FONT}; upgrade-insecure-requests;" always;

add_header Cache-Control 'no-store, no-cache, must-revalidate';
add_header Expires 0;
add_header Pragma no-cache;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate' always;
add_header 'Expires' 0 always;
add_header 'Pragma' 'no-cache' always;

try_files $uri $uri.html $uri/ /index.html;
alias /home/etl/api/web/dist/;
try_files /index.html =404;
}

location / {
Expand All @@ -63,8 +61,6 @@ http {
}

alias /home/etl/api/web/dist/;
autoindex on;

try_files $uri $uri.html $uri/ /index.html;
}

Expand Down

0 comments on commit ce0e396

Please sign in to comment.