Not working with subdir and reverse proxy
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by reviewing the reported config/config.php proxy and subpath settings, the nginx location block, and the proxy.php request URL. Compare the generated URLs with the occ config:app:get richdocuments wopi_url output. Done means requests for the Collabora proxy stay under /nc/apps/ instead of dropping the subdirectory.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
I am using the Collabora online CODE server installed over nextcloud on arm64.
The nextcloud is hosted on apache2 and accessible over a subdir like mydoman.tld/nc through a nginx reverse proxy.
Accessing the nextcloud and all other apps is no problem, but collabora code just wont load correctly, because it tries to access the proxy.php file the second and next requests over domain.tld/apps/... instead of domain.tld/nc/apps/...
If I run: php occ config:app:get richdocuments wopi_url it gives me the correct url with the subfolder.
It looks like this when trying to access the example file (https://domain.tld/nc/apps/richdocumentscode_arm64/proxy.php?req=/loleaflet/dist/loleaflet.html?file_path=file:///opt/libreoffice/online/test/data/hello-world.odt):

The nextcloud is configured in config/config.php for the proxy and subpath:
[...]
'overwriteprotocol' => 'https',
'overwritehost' => 'domain.tld:443',
'overwritewebroot' => '/nc',
Also nc reports, that collabora online is accessible in the settings.
nginx is configured like this:
location ^~/nc/ {
rewrite /nc(.*) $1 break;
[...]
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:4000;
}
Maybe I am missing an important setting here...
Thanks for your help! 😄
- Ngôn ngữ chính
- PHP
- Star
- 156
- Fork
- 37
- Merge trung bình
- 23 giờ 51 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CollaboraOnline/richdocumentscode
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CollaboraOnline/richdocumentscode#355 · 3 bình luận ·
-
Export to PDF uses wrong localeĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
CollaboraOnline/richdocumentscode#339 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
CollaboraOnline/richdocumentscode#338 · 1 bình luận ·
Tất cả issue của CollaboraOnline/richdocumentscode
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vimeo/psalm#14139 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
wpvc
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 67/100
10up/simple-local-avatars#386 ·
-
not confirmed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug (unconfirmed) Documentation :books:
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
FreshRSS/FreshRSS#9577 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày