Skip to content

Commit 0886019

Browse files
committed
Test out tailscaleAuth
1 parent 698ca79 commit 0886019

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

hosts/spore/services/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@
2626

2727
services.openssh.enable = true;
2828
services.tailscale.enable = true;
29+
services.tailscaleAuth.enable = true;
2930
}

hosts/spore/services/web/virtual-hosts.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
lib,
66
...
77
}: {
8+
services.nginx.tailscaleAuth = {
9+
enable = true;
10+
expectedTailnet = "rove-duck.ts.net";
11+
virtualHosts = ["test.zx.dev"];
12+
};
813
services.nginx.virtualHosts = {
914
"rey.foo" = {
1015
# forceSSL = true;
@@ -60,5 +65,10 @@
6065
enableAutheliaAuth = true;
6166
locations."/".proxyPass = "http://127.0.0.1:8082";
6267
};
68+
"test.zx.dev" = {
69+
forceSSL = true;
70+
useACMEHost = "zx.dev";
71+
locations."/".proxyPass = "http://127.0.0.1:3001";
72+
};
6373
};
6474
}

0 commit comments

Comments
 (0)