Skip to content

Commit

Permalink
Keep variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 1, 2024
1 parent 5010810 commit fe0672a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ http {
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;

set $IMG "img-src 'self' data: *.API_URL";
set $FONT "font-src 'self' data:";
set $WORKER "worker-src 'self' blob:";
set $STYLE_SRC_ELEM "style-src-elem 'self' 'unsafe-inline'";
set $STYLE_SRC_ATTR "style-src-attr 'unsafe-inline'";
set $CONNECT "connect-src 'self' *.API_URL:* *.ROOT_URL:*";
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-cache;
Expand Down

0 comments on commit fe0672a

Please sign in to comment.