feat(koi): tei.su MEOW method -> /api/meow
This commit is contained in:
parent
3bd6a6bf76
commit
d6ef8d27ea
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue