mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-07-02 23:47:18 +02:00
Secret services are now under cover
This commit is contained in:
parent
600519d0d7
commit
f4dedf0c4e
7 changed files with 23 additions and 7 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue