Add api stack with freepik and facefusion behind forwardAuth

Traefik routes api.pivoine.art/freepik and /facefusion to their
respective containers with path rewriting, shared API token auth
via an nginx sidecar, and api-rate-limit middleware.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 15:51:06 +01:00
parent cd46be7d45
commit 4a09dce2c0
2 changed files with 83 additions and 0 deletions

9
api/auth.conf.template Normal file
View File

@@ -0,0 +1,9 @@
server {
listen 8080;
location / {
if ($http_x_api_key != '${API_TOKEN}') {
return 401;
}
return 200;
}
}