Refine wildcard to only tailnet domains
This commit is contained in:
parent
316ba904aa
commit
14d0fb13ed
2 changed files with 4 additions and 4 deletions
|
@ -33,9 +33,9 @@
|
||||||
email = "admin@stranger.systems";
|
email = "admin@stranger.systems";
|
||||||
};
|
};
|
||||||
# Get a wildcard cert
|
# Get a wildcard cert
|
||||||
certs."wildcard.stranger.systems" = {
|
certs."tailnet.stranger.systems" = {
|
||||||
domain = "stranger.systems";
|
domain = "tailnet.stranger.systems";
|
||||||
extraDomainNames = ["*.stranger.systems"];
|
extraDomainNames = ["*.tailnet.stranger.systems"];
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
dnsPropagationCheck = true;
|
dnsPropagationCheck = true;
|
||||||
credentialFiles = {
|
credentialFiles = {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
services.nginx.virtualHosts."hub.tailnet.stranger.systems" = {
|
services.nginx.virtualHosts."hub.tailnet.stranger.systems" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "wildcard.stranger.systems";
|
useACMEHost = "tailnet.stranger.systems";
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:8081";
|
proxyPass = "http://127.0.0.1:8081";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue