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
|
||||
}
|
||||
|
||||
# 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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue