add health check
This commit is contained in:
parent
bd3477cd55
commit
21bd6d4f9f
1 changed files with 1 additions and 36 deletions
|
|
@ -24,41 +24,10 @@ in
|
||||||
quic = true;
|
quic = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
#useACMEHost = fqdn;
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
#listen = [
|
|
||||||
# {
|
|
||||||
# addr = "0.0.0.0";
|
|
||||||
# port = 443;
|
|
||||||
# ssl = true;
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# addr = "[::]";
|
|
||||||
# port = 443;
|
|
||||||
# ssl = true;
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# addr = "0.0.0.0";
|
|
||||||
# port = 8448;
|
|
||||||
# ssl = true;
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# addr = "[::]";
|
|
||||||
# port = 8448;
|
|
||||||
# ssl = true;
|
|
||||||
# }
|
|
||||||
#];
|
|
||||||
locations = {
|
locations = {
|
||||||
#"/.well-known/acme-challenge".root = config.security.acme.defaults.webroot;
|
|
||||||
"/".return = "418 \"I'm a Teapot!\"";
|
"/".return = "418 \"I'm a Teapot!\"";
|
||||||
"= /.well-known/matrix/client" = {
|
"~ ^(/_matrix|/_synapse/client|/health)" = {
|
||||||
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.berlin.ccc.de\"}}'";
|
|
||||||
extraConfig = ''
|
|
||||||
default_type application/json;
|
|
||||||
add_header Access-Control-Allow-Origin "*";
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"~ ^(/_matrix|/_synapse/client)" = {
|
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
proxyPass = "http://[::1]:8008";
|
proxyPass = "http://[::1]:8008";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
@ -70,8 +39,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#security.acme.certs."${fqdn}" = {
|
|
||||||
# reloadServices = [ "nginx" ];
|
|
||||||
#};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue