matemat: fix satisfy any

This commit is contained in:
Sandro - 2024-03-13 21:39:10 +01:00
parent 234dfba216
commit 9a4f31f52b
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 13 additions and 9 deletions

View File

@ -16,9 +16,12 @@
default = true; default = true;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
listen = libC.defaultListen;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:3000"; proxyPass = "http://127.0.0.1:3000";
extraConfig = libC.hqNetworkOnly + '' extraConfig = libC.hqNetworkOnly + ''
add_header X-Robots-Tag "noindex" always;
auth_basic secured; auth_basic secured;
auth_basic_user_file ${config.sops.secrets."nginx/basic-auth".path}; auth_basic_user_file ${config.sops.secrets."nginx/basic-auth".path};
''; '';

View File

@ -3,15 +3,16 @@ _:
{ {
defaultListen = let defaultListen = let
listen = [ listen = [
{ # breaks satisfy any
addr = "[::]"; # {
port = 80; # addr = "[::]";
} # port = 80;
{ # }
addr = "[::]"; # {
port = 443; # addr = "[::]";
ssl = true; # port = 443;
} # ssl = true;
# }
{ {
addr = "[::]"; addr = "[::]";
port = 8080; port = 8080;