feat(koi): teidesu-api reverse proxy

This commit is contained in:
alina 🌸 2024-07-11 16:08:47 +03:00
parent 93b67dfe60
commit 700bc3939d
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -41,6 +41,11 @@
extraConfig = "return 403;";
};
# todo: nixify and open-source teidesu-api
locations."/api/".extraConfig = ''
proxy_pass http://localhost:8728/;
'';
locations."/" = {
extraConfig = ''
try_files $uri $uri/ =404;