mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Fix tailscale funnel
This commit is contained in:
parent
3de481722b
commit
0456eb979a
1 changed files with 8 additions and 3 deletions
|
|
@ -54,9 +54,14 @@ in
|
||||||
];
|
];
|
||||||
wants = [ "tailscaled.service" ];
|
wants = [ "tailscaled.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig = {
|
||||||
preStart = "${lib.getExe pkgs.tailscale} cert --min-validity 120h ${cfg.subdomain}.${config.networking.domain}";
|
Type = "oneshot";
|
||||||
script = "${lib.getExe pkgs.tailscale} ${mode} ${cfg.serve.target}";
|
RemainAfterExit = true;
|
||||||
|
ExecStartPre = "${lib.getExe pkgs.tailscale} cert --min-validity 120h ${cfg.subdomain}.${config.networking.domain}";
|
||||||
|
ExecStart = "${lib.getExe pkgs.tailscale} ${mode} --bg ${cfg.serve.target}";
|
||||||
|
ExecStop = "${lib.getExe pkgs.tailscale} ${mode} reset";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
tailscaled-set.after = [ "tailscaled-autoconnect.service" ];
|
tailscaled-set.after = [ "tailscaled-autoconnect.service" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue