fix(caddy): allow nonlocal bind to fix circular dep with headscale
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-08-15 23:50:43 -04:00
parent 821b36b8c2
commit 9f93771440

View file

@ -15,6 +15,8 @@ in {
environment.systemPackages = [caddy]; environment.systemPackages = [caddy];
users.users.${mainUser}.extraGroups = ["caddy"]; users.users.${mainUser}.extraGroups = ["caddy"];
boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1;
systemd.services.caddy.serviceConfig = { systemd.services.caddy.serviceConfig = {
EnvironmentFile = secrets.caddy-cloudflare.path; EnvironmentFile = secrets.caddy-cloudflare.path;