You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong proxy url being detected if running behind a reverse proxy #2
I'm not entirely sure how to solve this properly. In Nextcloud we use HTTP_X_FORWARDED_PROTO and HTTP_X_FORWARDED_FOR but we also have dedicated config.php flags to override the protocol/host, but that would require you to somehow setup the server classes to access the config values, so that would have a performance impact again.
I had the same problem forcing $proxyURL = "https://"; was working, I solved the problem adding fastcgi_param HTTPS on; in nginx.conf.
Maybe It could help ?
Manually replacing http: with https: in that file located at /var/www/htmldata/appdata_ocbuka776eof/richdocuments/richdocuments/ inside the docker container worked around the problem.
php occ config:app:get richdocuments wopi_url shows the proper https url on a fresh build. However, when opening a collabora document for the first time, discovery.xml is generated with the wrong url.
Changing custom_apps/richdocumentscode/proxy.php to always build a https url fixes the path the next time workspace.xml is generated.
For me, adding the line SetEnv HTTPS on to .htaccess before installing/activating Collaboara apps in Nextcloud works.
Anyway, I'd highly appreciate a built-in solution for reverse-proxy installations.
This worked for me!
I had Collabora Online and Collabora Online - Built in Code Server already installed so I added SetEnv HTTPS on to .htaccess and then tested if Collabora worked, it did not. I then proceeded to uninstall and then re-install both Collabora Online and Collabora Online Built in Code Server from app store and everything worked!
Hi,
I tried the same today with NC 19.0.1, Collabora online 3.7.3 & Collabora Online - Built-in CODE Server 4.2.503 but even with the line SetEnv HTTPS on to .htaccess it doesn't work on my side.
Reacted by rafaelmateusm, Sylvain Devidal and Jorge Leitao
Activity
s3ppo commentedon Jun 21, 2020
i have the same issue when using OVERWRITEPROTOCOL=https in nextcloud config.php
the guys from nextcloud sent me to here...
nextcloud/server#21513
jlaunay commentedon Jun 23, 2020
I had the same problem forcing
$proxyURL = "https://";was working, I solved the problem addingfastcgi_param HTTPS on;in nginx.conf.Maybe It could help ?
bananer commentedon Jul 6, 2020
I also have requests to
proxy.phpfailing in a nextcloud docker installation running behind a https reverse proxy due to Content Security Policy.Digging through the code brought me to https://github.com/nextcloud/richdocuments/blob/01ffcbed19edac099cab9a94bc3987da9fcd5f2d/lib/WOPI/DiscoveryManager.php#L67 where the url is read from a file called
discovery.xmlbut I can't figure out where it is written.Manually replacing
http:withhttps:in that file located at/var/www/htmldata/appdata_ocbuka776eof/richdocuments/richdocuments/inside the docker container worked around the problem.php occ config:app:get richdocuments wopi_urlshows the properhttpsurl on a fresh build. However, when opening a collabora document for the first time,discovery.xmlis generated with the wrong url.Changing
custom_apps/richdocumentscode/proxy.phpto always build ahttpsurl fixes the path the next timeworkspace.xmlis generated.TLDR: No real solution
mschoeffmann commentedon Jul 14, 2020
For me, adding the line
SetEnv HTTPS onto.htaccessbefore installing/activating Collaboara apps in Nextcloud works.Anyway, I'd highly appreciate a built-in solution for reverse-proxy installations.
manrajsingh commentedon Jul 29, 2020
This worked for me!
I had Collabora Online and Collabora Online - Built in Code Server already installed so I added
SetEnv HTTPS onto.htaccessand then tested if Collabora worked, it did not. I then proceeded to uninstall and then re-install both Collabora Online and Collabora Online Built in Code Server from app store and everything worked!Exceltoi commentedon Jul 31, 2020
Hi,
I tried the same today with NC 19.0.1, Collabora online 3.7.3 & Collabora Online - Built-in CODE Server 4.2.503 but even with the line SetEnv HTTPS on to .htaccess it doesn't work on my side.