fix(caddy): allow nonlocal bind to fix circular dep with headscale
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
821b36b8c2
commit
9f93771440
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue