make caddy only turn on on a server

This commit is contained in:
jacekpoz 2024-04-04 12:41:54 +02:00
parent 142cc28acc
commit c0801f0a0b
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -96,7 +96,7 @@ in {
# };
# } // cfg.extraSettings;
};
services.caddy = {
services.caddy = mkIf (username == "chmura") {
virtualHosts."sync.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:${toString port}
'';