working config

This commit is contained in:
Andreas Knuth 2025-02-21 14:25:56 -06:00
parent c128ea96c4
commit b7cedcae3d
1 changed files with 6 additions and 12 deletions

View File

@ -17,21 +17,15 @@ bayarea-cc.com, www.bayarea-cc.com {
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
}
# Reverse Proxy für API-Anfragen (hat Vorrang)
@api {
path /api/*
}
reverse_proxy @api host.docker.internal:3001 {
header_up X-Real-IP {remote_host}
handle /api {
reverse_proxy host.docker.internal:3001
}
# Statische Dateien nur für nicht-API-Pfade
@notApi {
not path /api/*
}
handle {
root * /app
try_files @notApi {path} /index.html
file_server @notApi
try_files {path} /index.html
file_server
}
# Logging für Debugging
log {