mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21: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" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
preStart = "${lib.getExe pkgs.tailscale} cert --min-validity 120h ${cfg.subdomain}.${config.networking.domain}";
|
||||
script = "${lib.getExe pkgs.tailscale} ${mode} ${cfg.serve.target}";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue