Edit 03/06/2020 : Now 5.5.3 is live.
Today a new milestone has been past : 1K downloads of this Docker Container, you are amazing everyone !
——————————-
OnlyOffice Document Server with a 100 simultaneous connections and Mobile Edition !
Alright i built a Docker Repository where i put my working image. Source code is at the end of this HOW TO.
So let’s start :
docker pull nemskiller007/officeunleashed
Will download my image
Let’s run it :
docker run -i -t -d -p 8000:80 --restart=always nemskiller007/officeunleashed
Do a : docker ps -a
in order to find your CONTAINER_ID or CONTAINER_NAME
Lets modify a file for having a password protected OnlyOffice :
docker exec -it CONTAINER_ID /bin/bash
nano /out/linux_64/onlyoffice/documentserver/server/Common/config/default.json
Go on line 155 and replace every string with secret written in it with your own password :
example : "browser": {"string": "ItsMyPassw0rdBro", "file": "", "tenants": {}}
,
Then on line 163 to 170 change all false by true
example
"request": {
"inbox": true,
"outbox": true
}
Save and quit, and quit the container by an exit
Shutdown the container and restart it
docker stop CONTAINER_ID
docker start CONTAINER_ID
Here is the nginx conf file you have to use (replace office.MYDOMAIN.COM by your own FQDN):
upstream docservice {
server office.MYDOMAIN.COM:8000;
}
map $http_host $this_host {
"" $host;
default $http_host;
}
map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
"" $scheme;
}
map $http_x_forwarded_host $the_host {
default $http_x_forwarded_host;
"" $this_host;
}
map $http_upgrade $proxy_connection {
default upgrade;
"" close;
}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Forwarded-Host $the_host;
proxy_set_header X-Forwarded-Proto $the_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
server {
server_tokens off;
server_name office.MYDOMAIN.COM;
location / {
proxy_pass http://docservice;
proxy_http_version 1.1;
}
listen 0.0.0.0:80;
listen [::]:80;
server_name office.MYDOMAIN.com;
}
Then reload nginx and ask an ssl cert to letsencrypt.
Install the « ONLYOFFICE » app and in the onlyoffice admin panel type https://office.MYDOMAIN.COM and the secret password you created.
If you have on the same host nextcloud and the onlyoffice docker you have to modify the file /etc/hosts by adding this line
127.0.0.1 office.MYDOMAIN.COM
If you want the source code : https://github.com/warnerbryce/DocumentServer
If you want the files compiled without the Docker Container : https://cloud.werry.ovh/s/yrajzsbqZroxzqx/download
I will try to keep this up to date with the next versions, but if someone wants to help me, i can share the building process (very complicated). @jospoortvliet @rakekniven