feat(ops/modules/www): drop hsts for .dev

The .dev TLS is on the HSTS preload list, so there's no need to set this
header here at all.

Change-Id: I253fa2427e75bd0808945cd5d53159cac74e7f8b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11018
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2024-02-24 01:41:31 +07:00 committed by clbot
parent f3faeae52a
commit 515d933808

View file

@ -11,20 +11,12 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = depot.tvix.website; root = depot.tvix.website;
extraConfig = ''
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
'';
}; };
services.nginx.virtualHosts."bolt.tvix.dev" = { services.nginx.virtualHosts."bolt.tvix.dev" = {
root = depot.web.tvixbolt; root = depot.web.tvixbolt;
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
extraConfig = ''
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
'';
}; };
# old domain, serve redirect # old domain, serve redirect
@ -40,8 +32,6 @@
forceSSL = true; forceSSL = true;
extraConfig = '' extraConfig = ''
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
location = / { location = / {
# until we have a better default page here # until we have a better default page here
return 301 https://docs.tvix.dev/rust/tvix_eval/index.html; return 301 https://docs.tvix.dev/rust/tvix_eval/index.html;