feat(devenv): add statix

This commit is contained in:
uku 2024-05-18 12:35:02 +02:00
parent 1f86d66063
commit aa8c49c5bd
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
6 changed files with 24 additions and 17 deletions

View file

@ -62,26 +62,26 @@
nginx = {
enable = true;
virtualHosts."m.uku.moe" = {
locations."=/.well-known/matrix/server" = let
server = {"m.server" = "m.uku.moe:443";};
in {
virtualHosts."m.uku.moe".locations = let
server = {"m.server" = "m.uku.moe:443";};
client = {"m.homeserver"."base_url" = "https://m.uku.moe";};
in {
"=/.well-known/matrix/server" = {
return = "200 '${builtins.toJSON server}'";
};
locations."=/.well-known/matrix/client" = let
client = {"m.homeserver"."base_url" = "https://m.uku.moe";};
in {
"=/.well-known/matrix/client" = {
return = "200 '${builtins.toJSON client}'";
};
locations."/" = {
"/" = {
proxyPass = "http://localhost:8008";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 600;
client_max_body_size 100M;
'';
};
};