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;
forceSSL = true;
enableACME = true;
listen = libC.defaultListen;
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
extraConfig = libC.hqNetworkOnly + ''
add_header X-Robots-Tag "noindex" always;
auth_basic secured;
auth_basic_user_file ${config.sops.secrets."nginx/basic-auth".path};
'';

View File

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