fix http challenge
This commit is contained in:
parent
ff9315233c
commit
2a28214610
1 changed files with 6 additions and 5 deletions
|
|
@ -24,7 +24,8 @@ in
|
|||
quic = true;
|
||||
kTLS = true;
|
||||
forceSSL = true;
|
||||
useACMEHost = fqdn;
|
||||
#useACMEHost = fqdn;
|
||||
enableACME = true;
|
||||
listen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
|
|
@ -48,7 +49,7 @@ in
|
|||
}
|
||||
];
|
||||
locations = {
|
||||
"/.well-known/acme-challenge".root = config.security.acme.defaults.webroot;
|
||||
#"/.well-known/acme-challenge".root = config.security.acme.defaults.webroot;
|
||||
"/".return = "418 \"I'm a Teapot!\"";
|
||||
"= /.well-known/matrix/client" = {
|
||||
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.berlin.ccc.de\"}}'";
|
||||
|
|
@ -70,7 +71,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
security.acme.certs."${fqdn}" = {
|
||||
reloadServices = [ "nginx" ];
|
||||
};
|
||||
#security.acme.certs."${fqdn}" = {
|
||||
# reloadServices = [ "nginx" ];
|
||||
#};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue