feat: change domain
This commit is contained in:
parent
e727922e9c
commit
fb5c340f5f
4 changed files with 23 additions and 30 deletions
|
|
@ -59,9 +59,9 @@
|
|||
proxyPass = "http://192.168.0.6";
|
||||
};
|
||||
};
|
||||
"www.moritz.foo" = {
|
||||
"www.moritz.place" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "any.moritz.foo";
|
||||
useACMEHost = "any.moritz.place";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
add_header Content-Type text/html;
|
||||
|
|
@ -69,17 +69,17 @@
|
|||
return = "200 '<html><body>Hello World</body></html>'";
|
||||
};
|
||||
};
|
||||
"moritz.foo" = {
|
||||
"moritz.place" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "moritz.foo";
|
||||
useACMEHost = "moritz.place";
|
||||
locations."/" = {
|
||||
return = "301 https://www.moritz.foo";
|
||||
return = "301 https://www.moritz.place";
|
||||
};
|
||||
};
|
||||
"_" = {
|
||||
forceSSL = true;
|
||||
default = true;
|
||||
useACMEHost = "any.moritz.foo";
|
||||
useACMEHost = "any.moritz.place";
|
||||
locations."/" = {
|
||||
return = "404 'Not found!'";
|
||||
};
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
|
||||
map $ssl_preread_server_name $name {
|
||||
hostnames;
|
||||
.moritz.foo self;
|
||||
.moritz.place self;
|
||||
.moritzboeh.me diskstation;
|
||||
}
|
||||
|
||||
|
|
@ -112,13 +112,13 @@
|
|||
acceptTerms = true;
|
||||
defaults.email = "acme@moritzboeh.me";
|
||||
defaults.dnsResolver = "1.1.1.1:53";
|
||||
certs."moritz.foo" = {
|
||||
certs."moritz.place" = {
|
||||
dnsProvider = "cloudflare";
|
||||
group = "nginx";
|
||||
environmentFile = config.clan.core.vars.generators.acme.files.vars.path;
|
||||
};
|
||||
certs."any.moritz.foo" = {
|
||||
domain = "*.moritz.foo";
|
||||
certs."any.moritz.place" = {
|
||||
domain = "*.moritz.place";
|
||||
dnsProvider = "cloudflare";
|
||||
group = "nginx";
|
||||
environmentFile = config.clan.core.vars.generators.acme.files.vars.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue