Skip to content

Commit

Permalink
feat(nix/systems/alligator/nginx): removed meow-specific config
Browse files Browse the repository at this point in the history
  • Loading branch information
Litarvan committed Aug 3, 2023
1 parent da81aea commit 5431e75
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
23 changes: 0 additions & 23 deletions systems/alligator/nginx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ in
extraLegoRunFlags = [ "--preferred-chain" "ISRG Root X1" ]; # iPXE is missing some root certificates
};

${vars.domains.meow}.extraLegoRunFlags = [ "--preferred-chain" "ISRG Root X1" ]; # My old LG TV (with webOS 1.X) is missing some root certificates too

${vars.domains.root} = {
domain = "*.${vars.domains.root}";
extraDomainNames = map (x: "*.${x}") vars.domains.subRoots;
Expand Down Expand Up @@ -71,27 +69,6 @@ in
inherit extraConfig;
};

# TODO: Generify
${vars.domains.meow} = {
http2 = true;
quic = true;

enableACME = true;
forceSSL = true;

extraConfig = ''
add_header Expect-CT "max-age=0";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
'';

locations."/" = {
proxyPass = "https://${builtins.head (builtins.split "/" vars.wireguard.peers.leviathan-alpha.ips.v4)}";
proxyWebsockets = true;
};
};

"*.${vars.domains.root}" = {
http2 = true;
quic = true;
Expand Down
1 change: 0 additions & 1 deletion vars/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ rec {

alligator = "alligator.litarvan.com";
pxe = "pxe.alligator.litarvan.com";
meow = "meow.litarvan.com";
};

pxeRemote = "https://${domains.pxe}";
Expand Down

0 comments on commit 5431e75

Please sign in to comment.