Changed caddy from configFile to virtualHosts

This commit is contained in:
willifan 2024-11-22 08:04:04 +01:00
parent 25bf425c78
commit 9e800c9882

View file

@ -3,18 +3,16 @@
services.caddy = {
enable = true;
configFile = pkgs.writeText "Caddyfile" ''
https://git.huwe.mooo.com {
reverse_proxy localhost:3000
}
https://files.huwe.mooo.com {
reverse_proxy localhost:444
}
https://cal.huwe.mooo.com {
reverse_proxy localhost:5232
}
'';
virtualHosts = {
"https://git.huwe.mooo.com" = {
extraConfig = "reverse_proxy localhost:3000";
};
"https://files.huwe.mooo.com" = {
extraConfig = "reverse_proxy localhost:444";
};
"https://cal.huwe.mooo.com" = {
extraConfig = "reverse_proxy localhost:5232";
};
};
};
}