add draupnir

This commit is contained in:
XenGi 2025-11-24 22:56:05 +01:00
parent 9dd5d2ef2e
commit 79c5c57629
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0
5 changed files with 45 additions and 2 deletions

View file

@ -20,6 +20,7 @@ in
kTLS = true;
forceSSL = true;
useACMEHost = fqdn;
#enableACME = true;
locations = {
"/.well-known/matrix/client" = {
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.berlin.ccc.de\"}}'";
@ -28,13 +29,23 @@ in
add_header Access-Control-Allow-Origin "*";
'';
};
"/" = {
"~ ^(/_matrix|/_synapse/client)" {
recommendedProxySettings = true;
proxyPass = "unix:/run/matrix-synapse.sock";
extraConfig = ''
proxy_set_header X-Request-ID $request_id;
'';
};
"/" = {
return = "418 \"I'm a Teapot!\"";
};
extraConfig = ''
client_max_body_size 64M;
'';
};
extraConfig = ''
'';
proxy_http_version 1.1;
'';
};
};