working config
This commit is contained in:
parent
c128ea96c4
commit
b7cedcae3d
|
|
@ -17,21 +17,15 @@ bayarea-cc.com, www.bayarea-cc.com {
|
||||||
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
|
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
|
||||||
}
|
}
|
||||||
|
|
||||||
# Reverse Proxy für API-Anfragen (hat Vorrang)
|
handle /api {
|
||||||
@api {
|
reverse_proxy host.docker.internal:3001
|
||||||
path /api/*
|
|
||||||
}
|
|
||||||
reverse_proxy @api host.docker.internal:3001 {
|
|
||||||
header_up X-Real-IP {remote_host}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Statische Dateien nur für nicht-API-Pfade
|
handle {
|
||||||
@notApi {
|
|
||||||
not path /api/*
|
|
||||||
}
|
|
||||||
root * /app
|
root * /app
|
||||||
try_files @notApi {path} /index.html
|
try_files {path} /index.html
|
||||||
file_server @notApi
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
# Logging für Debugging
|
# Logging für Debugging
|
||||||
log {
|
log {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue