feat(koi): tei.su MEOW method -> /api/meow

This commit is contained in:
alina 🌸 2024-08-13 01:43:51 +03:00
parent 3bd6a6bf76
commit d6ef8d27ea
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -38,6 +38,11 @@ in {
locations."/" = { locations."/" = {
proxyPass = "http://teisu.docker:4321$request_uri"; proxyPass = "http://teisu.docker:4321$request_uri";
extraConfig = ''
if ($request_method = MEOW) {
rewrite ^ /.meow-proxy last;
}
'';
}; };
locations."/.well-known/" = { locations."/.well-known/" = {
@ -46,5 +51,13 @@ in {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
''; '';
}; };
locations."/.meow-proxy" = {
proxyPass = "http://teisu.docker:4321/api/meow";
extraConfig = ''
proxy_method GET;
internal;
'';
};
}; };
} }