mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
Refactored subdomains creation
This commit is contained in:
parent
f6b29709c5
commit
be4fce11f4
11 changed files with 28 additions and 103 deletions
|
@ -29,17 +29,8 @@ in
|
|||
}
|
||||
|
||||
(mkIf cfg.nginx.enable {
|
||||
luj.nginx.enable = true;
|
||||
services.hydra.hydraURL = "${cfg.nginx.subdomain}.julienmalka.me";
|
||||
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
|
||||
})]);
|
||||
} // mkSubdomain cfg.nginx.subdomain port )]);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue