add metrics
This commit is contained in:
parent
79c5c57629
commit
1612f5e511
6 changed files with 227 additions and 60 deletions
|
|
@ -20,9 +20,9 @@ in
|
|||
kTLS = true;
|
||||
forceSSL = true;
|
||||
useACMEHost = fqdn;
|
||||
#enableACME = true;
|
||||
locations = {
|
||||
"/.well-known/matrix/client" = {
|
||||
"/".return = "418 \"I'm a Teapot!\"";
|
||||
"= /.well-known/matrix/client" = {
|
||||
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.berlin.ccc.de\"}}'";
|
||||
extraConfig = ''
|
||||
default_type application/json;
|
||||
|
|
@ -31,25 +31,16 @@ in
|
|||
};
|
||||
"~ ^(/_matrix|/_synapse/client)" {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "unix:/run/matrix-synapse.sock";
|
||||
proxyPass = "http://[::1]:8008";
|
||||
extraConfig = ''
|
||||
client_max_body_size 64M;
|
||||
proxy_set_header X-Request-ID $request_id;
|
||||
proxy_http_version 1.1;
|
||||
'';
|
||||
};
|
||||
"/" = {
|
||||
return = "418 \"I'm a Teapot!\"";
|
||||
};
|
||||
extraConfig = ''
|
||||
client_max_body_size 64M;
|
||||
'';
|
||||
};
|
||||
extraConfig = ''
|
||||
proxy_http_version 1.1;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
security.acme.certs."${fqdn}" = {
|
||||
reloadServices = ["nginx"];
|
||||
};
|
||||
security.acme.certs."${fqdn}".reloadServices = ["nginx"];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue