mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
nuc: switch to caddy
This commit is contained in:
parent
6e82ae5be8
commit
657ae1385e
10 changed files with 69 additions and 98 deletions
8
hosts/nuc/modules/cache/default.nix
vendored
8
hosts/nuc/modules/cache/default.nix
vendored
|
@ -10,9 +10,7 @@ in
|
|||
enable = true;
|
||||
secretKeyFile = config.age.secrets.cache.path;
|
||||
};
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.nix-serve.port}";
|
||||
};
|
||||
};
|
||||
services.caddy.virtualHosts."${domain}".extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:${toString config.services.nix-serve.port}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue