-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not working for HTTPS-Only HumHub installations #3
Comments
Hello! Thanks for your contribution. |
thanks eloncase for reply. as i understand the issue you linked it is about termination off ssl and plan http humhub. but i have set humhub to use HTTPS and still the module generates an http url.. thats what i think is strange. so it is the other way arround: on the linked issue a plain HTTP linke makes sense for me, as the installation is plain HTTP... |
Have you tried making permalink to a post? Is it http or https? The issue mostly about that Is Forwarded headers configured properly on your proxy server? |
thanks eloncase, i will check this as soon as i have some spare minutes, i think BaseUrl should be correct but the headers i have to check! |
To add a data point here: My https only installation works fine after some debugging. I have the document server docker image with a port switch: Apache is setup with virtual hosts for two subdomains, one serving the onlyoffice document server as proxy adding Https (my configuration) and the other serving Humhub. |
@bha-lockdrives when i remember correctly adding this in humhub/protected/config/web.php did the trick for me: (see humhub/humhub#3815) |
Yes this is the issue. The other way around works but you should never attempt to use http resources in a page loaded via https. It creates warnings or does not work at all. |
@dreua Thanks for that, glad to see on the right track! :) |
@smurf1965 Happy to help! Getting OO+Humhub to work together can really be a p... - well let's call it difficult 😉 @ someone with moderation privilege: Feel free to hide my off-topic comments here. |
Hi guys, Sorry to revisit this issue , but I'm a newbie that tried a kazillion things and am desperately trying to get this to work! Log Error: "Expected JWT" Version: Humhub 1.9,1 Here's what I did/tried so far:
Here is the humhub LOG: `2021-10-12 15:39:22 [78.129.139.241][-][-][error][onlyoffice] Expected JWT $_SERVER = [ Onlyoffice and Humhub are on two different servers so it seems the internal requests sections are not relevant. I suspect that it is related to the AutoSSL that is preventing onlyoffice from seeing Humhub? However I am havinga hard time wrapping my head around what specifically I need to do to fix that? I would be very grateful for any tips or help 🙏 Many thanks, |
thats weird, did you configure JWT secret in the module configuration? |
Thanks for getting back daum3ns :). Yes I configured Fields 'Hostname' and JWT secret and it immediately connects successfully with green message on top in module config: "ONLYOFFICE Docs successfully connected! - Installed version: 6.4.1.45". But when I try to open document i get the error message: And in log "Expected JWT" as shown in post above. |
argh, i remember having exactly that message.. did you verify the setting i mentioned here: #3 (comment) |
Thanks... for your feedback :). Yes - saw your message in ealier dialogue, and added that to web.php, because thought it couldn't hurt - but no dice. Did you configure the proxy settings in humhub admin - Is that what I am missing. I have not actively set a proxy for use on my server, but perhaps simply enabling AutoSSL on my Cpanel/WHM is somehting that now intercepts humhub as a proxy? |
no i don't have proxy settings set... (although i have a reverse proxy in front, but that's all handled by docker-compose in my case i think, the same reverse proxy is in front of the docserver and translates back to plain http, i.e the docserver itself thinks its plain http when i remember correctly) it was a time ago i set this up.. maybe give it a try without autossl... idk.. |
Ok many thanks daum3ns - very good to know! Can't justify abandoning AutoSSL, but you're right I could try and switch it off. If anyone has ideas to share, I would be eternally grateful :) |
Problem remains and I'm stuck with "The document could not be saved. Please check connection settings or contact your administrator" Does anything in my error log posted above spring into your eyes - what am I missing? @Eloncase @dreua I know you are probably super busy, but would be grateful for any help/pointers :) |
The Module sets the document.url incorrect so that a "download failed" alert is seen:
https://stackoverflow.com/questions/46545410/docker-document-server-download-failed
https://api.onlyoffice.com/editors/config/document#url
i see in the logs that the url is set like humhub was plain-http although humhub is setup to use https. there is no way to set this in gui, nor in config files..
when i disable automatic redirect of http traffic to https for humhub, the module works ...
please fix this issue, or let me help you fix it! i think it must be quite simple, but i don't know the framework...
The text was updated successfully, but these errors were encountered: