fix: caddy serving cups.local, help.local
This commit is contained in:
parent
03e55b6fde
commit
ec73b43425
|
@ -55,19 +55,14 @@ in {
|
||||||
++ lib.optionals cfg.enableHelp ["help.local"];
|
++ lib.optionals cfg.enableHelp ["help.local"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Changing the Caddyfile should only trigger a reload, not a restart
|
|
||||||
systemd.services.caddy.reloadTriggers = [
|
|
||||||
config.services.caddy.configFile
|
|
||||||
];
|
|
||||||
|
|
||||||
# Caddy reverse proxy for local services like cups
|
# Caddy reverse proxy for local services like cups
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = lib.mkDefault cfg.enableCaddy;
|
enable = lib.mkForce cfg.enableCaddy;
|
||||||
globalConfig = lib.mkDefault ''
|
globalConfig = lib.mkForce ''
|
||||||
default_bind 127.0.0.1
|
default_bind 127.0.0.1
|
||||||
auto_https off
|
auto_https off
|
||||||
'';
|
'';
|
||||||
extraConfig = lib.mkDefault (concatStringsSep "\n" [
|
extraConfig = lib.mkForce (concatStringsSep "\n" [
|
||||||
(lib.optionalString
|
(lib.optionalString
|
||||||
config.pub-solar.printing.enable
|
config.pub-solar.printing.enable
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue