Hello,
I have a little problem.
I’m running onlyoffice on a seperate VM with docker and it works fine.
So I decided to connect nextcloud with onlyoffice…
I wrote the URL of my Onlyoffice Community - Editor Server.
After that I’ll tried to edit a File in Nextcloud but there is an issue:
“ONLYOFFICE app not configured”
Can someone help me?
Edit:
My Nextcloud is signed with an SSL cert. My DocumentServer/Community Server Onlyoffice - is not. But this should be okay or?
dev0
April 4, 2017, 5:15pm
2
technical mixing ssl and plain connections work but recent browser are blocking that. either you enable ssl with the documentserver, or you put a proxy which can do ssl in between you and onlyoffice.
I tried to create an SSL connection on the documentserver but it didn’nt work.
If i tried to start it on Port 443 it was not available by accessing it through : https://mydocument
dev0
April 4, 2017, 5:22pm
4
you need to create some certificates for your documentserver as described here:
Docker-DocumentServer - ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats:...
1 Like
Thanks for your quick response!
But is this actually the Problem ? I mean nextcloud says : app not configured
This should not be a problem with the cert or am I wrong?
ftaut
April 5, 2017, 9:54am
6
@Whit3Styler try smt crazy. Just open your DocumentServer in your browser like this: http://my-documentserver / https://my-documentserver
If the page tells you that your DocumentServer is running, try again to open a document.
This isnt a fix but in my case it helped solving this issue.
Regards
The problem can be resolved by switching Document Server to https (as dev0 wrote above)
It will help you to avoid Mixed Content (Your NC page loaded over HTTPS cannot load resources over HTTP from Document Server)
@ftaut Well I have a Community Server with a integrated Document Server.
https://www.youtube.com/watch?v=7kiJ99tmsi0 as you can see here at 4:04
Is that possible too or do I need the document server self standalone?
Hello @Whit3Styler
In this case you need to switch Community Server to https. How to perform it you may see in our helpcenter .
@JohnPerkin
Thanks for your response!
I’m doing exactly this:
sudo docker run -i -t -d -p 80:80 -p 443:443
-v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data onlyoffice/communityserver
Container is running.
root@rs-office:/tmp# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES552ad7814903 onlyoffice/communityserver “/bin/sh -c 'exec …” 3 minutes ago Up 2 minutes 0.0.0.0:80->80/tcp, 3306/tcp, 5222/tcp, 5280/tcp, 9865-9866/tcp, 9871/tcp, 9882/tcp, 0.0.0.0:443->443/tcp, 9888/tcp
Port is with a docker Proxy attached:
root@rs-office:/tmp# netstat -tupln | grep 443
tcp6 0 0 :::443 :::* LISTEN 7940/docker-proxy
If i’m trying to access my Site through https:
“ERR_CONNECTION_REFUSED”
UPDATE:
I’m able to connect now!
Now is one last question open:
How can I do this cert valid?
Okay so I did copy the Tutorial of onlyoffice
http://helpcenter.onlyoffice.com/server/docker/document/docker-installation.aspx#RunningHTTPS
https://helpcenter.onlyoffice.com/server/docker/community/run-using-https.aspx
But that makes no sense:
"docker run -i -t -d -p 80:80 -p 443:443
-v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data onlyoffice/communityserver"
to run the communityserver on 443:
sudo docker run -i -t -d -p 443:443
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver
for the document server on 443:
This dosen’t work because only on of them can bind to 443: at the same time
dev0
April 6, 2017, 6:54am
12
yes, thats because you missed the part that you have to setup a bridge-networkt and no ports exposed at the documentserver
sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-document-server \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
onlyoffice/documentserver
so nextcloud is using the communityserver for editing documents and that works too.
perhaps you should get sleep
@dev0
yep u’r right
Well it was just a command from the onlyoffice documentation
I installed onlyoffice on this way:
http://helpcenter.onlyoffice.com/server/docker/opensource/opensource-script-installation.aspx
bash opensource-install.sh -ims false this should be install the document and community server right?
But without https so how can I do this?
I know this isn’t a forum for onlyoffice but it would be cool if someone know how to do this
Thanks!
dev0
April 6, 2017, 7:00pm
14
What certificate did you use for signing your apache instance of nextcloud?
I used this tutorial for creating ssl certs:
https://helpcenter.onlyoffice.com/de/server/linux/document/switch-to-https.aspx
I’ve used the same certs for my communityserver
Is this correct?
Thanks!