forked from pub-solar/os
core: reload caddy instead of always restarting
when config file changes
This commit is contained in:
parent
5b1f2dcc23
commit
b9031dbd7c
|
@ -55,6 +55,11 @@ in {
|
|||
++ 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
|
||||
services.caddy = {
|
||||
enable = cfg.enableCaddy;
|
||||
|
|
Loading…
Reference in a new issue