-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julien Bouquillon
committed
Sep 13, 2023
1 parent
349d43b
commit cf95421
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
app: | ||
host: 1000jours.fabrique.social.gouv.fr | ||
ingress: | ||
# adjustments for /acvc path | ||
# proxy_upstream_name must be set to correct upstream | ||
# https://docs.unity3d.com/Manual/webgl-deploying.html | ||
annotations: | ||
nginx.ingress.kubernetes.io/server-snippet: | | ||
location ~ .+\.(data|symbols\.json)\.gz$ { | ||
proxy_hide_header X-Content-Type-Options; | ||
proxy_hide_header Content-Type; | ||
gzip off; # Do not attempt dynamic gzip compression on an already compressed file | ||
add_header Content-Encoding gzip; | ||
add_header Content-Type application/gzip; # The correct MIME type here would be application/octet-stream, but due to Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421, it's preferable to use MIME Type application/gzip instead. | ||
set $proxy_upstream_name "nos1000jours-landing-app-http"; | ||
proxy_pass http://upstream_balancer; | ||
} | ||
location ~ .+\.js\.gz$ { | ||
proxy_hide_header X-Content-Type-Options; | ||
proxy_hide_header Content-Type; | ||
gzip off; # Do not attempt dynamic gzip compression on an already compressed file | ||
add_header Content-Encoding gzip; # The correct MIME type here would be application/octet-stream, but due to Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421, it's preferable to use MIME Type application/gzip instead. | ||
add_header Content-Type application/javascript; # The correct MIME type here would be application/octet-stream, but due to Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421, it's preferable to use MIME Type application/gzip instead. | ||
set $proxy_upstream_name "nos1000jours-landing-app-http"; | ||
proxy_pass http://upstream_balancer; | ||
} | ||
location ~ .+\.wasm\.gz$ { | ||
proxy_hide_header X-Content-Type-Options; | ||
proxy_hide_header Content-Type; | ||
gzip off; # Do not attempt dynamic gzip compression on an already compressed file | ||
add_header Content-Encoding gzip; # The correct MIME type here would be application/octet-stream, but due to Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421, it's preferable to use MIME Type application/gzip instead. | ||
add_header Content-Type application/wasm; # The correct MIME type here would be application/octet-stream, but due to Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421, it's preferable to use MIME Type application/gzip instead. | ||
set $proxy_upstream_name "nos1000jours-landing-app-http"; | ||
proxy_pass http://upstream_balancer; | ||
} | ||
nginx.ingress.kubernetes.io/configuration-snippet: | | ||
more_set_headers "Content-Security-Policy: default-src 'none'; connect-src 'self' https://*.gouv.fr; font-src 'self' data:; img-src 'self'; script-src 'self' https://*.gouv.fr 'unsafe-inline' 'unsafe-eval'; frame-src 'self' https://*.gouv.fr; style-src 'self' 'unsafe-inline'"; | ||
more_set_headers "X-Frame-Options: sameorigin"; | ||
more_set_headers "X-XSS-Protection: 1; mode=block"; | ||
more_set_headers "X-Content-Type-Options: none"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters