enable acme http challenge
This commit is contained in:
parent
0c71452bb8
commit
ea94303f03
2 changed files with 7 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ let
|
|||
fqdn = "matrix.berlin.ccc.de";
|
||||
in
|
||||
{
|
||||
users.users.nginx.extraGroups = [ "acme" ];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
resolver.addresses = [
|
||||
|
|
@ -46,6 +48,7 @@ in
|
|||
}
|
||||
];
|
||||
locations = {
|
||||
"/.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\"}}'";
|
||||
|
|
@ -67,5 +70,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