mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-10 08:37:02 +00:00
🐛 fix(apache): send X-Forwarded-Prefix for EuroOffice SDK assets
EuroOffice nginx maps $http_x_forwarded_prefix to construct SDK asset URLs (e.g. /eurooffice/sdkjs/...). Without this header the prefix is empty and the browser requests /sdkjs/... which Caddy routes to Nextcloud → 404. Send X-Forwarded-Prefix as a separate header instead of appending the path to X-Forwarded-Host (as the OnlyOffice block does), matching EuroOffice nginx expectations. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
This commit is contained in:
@@ -54,7 +54,8 @@ http://{$APACHE_HOST}.nextcloud-aio:23973, # For Collabora callback and WOPI req
|
|||||||
route /eurooffice/* {
|
route /eurooffice/* {
|
||||||
uri strip_prefix /eurooffice
|
uri strip_prefix /eurooffice
|
||||||
reverse_proxy {$EUROOFFICE_HOST}:80 {
|
reverse_proxy {$EUROOFFICE_HOST}:80 {
|
||||||
header_up X-Forwarded-Host {http.request.hostport}/eurooffice
|
header_up X-Forwarded-Host {http.request.hostport}
|
||||||
|
header_up X-Forwarded-Prefix /eurooffice
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user