Secret services are now under cover

This commit is contained in:
Julien Malka 2022-02-20 18:36:34 +01:00
parent f01fd4e8ca
commit 96d5711503
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
7 changed files with 23 additions and 7 deletions

View file

@ -52,6 +52,22 @@ in
};
};
mkPrivateSubdomain = name: port: {
luj.nginx.enable = true;
services.nginx.virtualHosts."${name}.julienmalka.me" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
extraConfig = ''
allow 10.100.0.0/24;
deny all;
'';
};
};
};
luj = import ./luj.nix final;
}