Try the fastest and simplest way to install ONLYOFFICE

Install onlyoffice in subdirectory

Issues during installation and related to database

Re: Install onlyoffice in subdirectory

Postby Yoann » Fri Mar 18, 2016 11:19 am

With this change, it's pratically work but :

Files module doesn't work, i get an internal error 500 :
System.InvalidOperationException
Failed to map path '/products/files/controls/mainmenu/mainmenu.ascx'

Project modules doesn't work, i get an internal error 500 :
System.InvalidOperationException
Failed to map path '/products/projects/controls/common/commonlist.ascx'
Yoann
 
Posts: 27
Joined: Wed Jan 20, 2016 10:43 am

Re: Install onlyoffice in subdirectory

Postby Yoann » Thu Mar 24, 2016 2:29 pm

Help please ! :)

Thanks,
Yoann
Yoann
 
Posts: 27
Joined: Wed Jan 20, 2016 10:43 am

Re: Install onlyoffice in subdirectory

Postby Dean » Tue Mar 29, 2016 10:21 am

Hello,

Checked it out again. We detected a bug which will not allow us to run in the subdirectory. We will fix it ASAP.
Dean
 
Posts: 700
Joined: Tue Sep 30, 2014 11:04 am

Re: Install onlyoffice in subdirectory

Postby Yoann » Tue Mar 29, 2016 11:27 am

Thanks a lot !
Yoann.
Yoann
 
Posts: 27
Joined: Wed Jan 20, 2016 10:43 am

Re: Install onlyoffice in subdirectory

Postby DerDanilo » Wed May 31, 2017 2:31 pm

@Dean / @OnlyOffice Devs

Can you please provide an option for the OnlyOffice docker images to host the service in a subfolder for easy deployment?
This will help to deploy more of your awesome app and have a greater community as the complexity of setup will be way easier and we can write better setup guides for apps like Owncloud/Nextcloud/Seafile etc..

e.g.
Code: Select all
docker run -i -t -d -p 88:80 --restart=always --name oods --folderpath /oods onlyoffice/documentserver


This way it would be possible to run e.g. the document server on the servers where we want to integrate the service without the need to use another subdomain/domain to provide the server.

What we have to do right now:

https://cloud.domain.com
https://onlyofficedocumentserver.domain.com

What we want to achieve:

https://cloud.domain.com
https://cloud.domain.com/onlyofficedocumentserver


Nginx config could look like this:
...
Code: Select all
    location /onlyoffice {
   proxy_pass http://127.0.0.1:88;
   ProxyPassReverse https://cloud.domain.com/onlyofficedocumentserver http://127.0.0.1:88/
   client_max_body_size 100; # Limit Document size to 100MB
   proxy_read_timeout 3600s;
   proxy_connect_timeout 3600s;
   proxy_set_header Host $http_host;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection $connection_upgrade;
   proxy_set_header X-Forwarded-Proto $scheme;
    }
...
DerDanilo
 
Posts: 5
Joined: Wed May 31, 2017 2:15 pm

Re: Install onlyoffice in subdirectory

Postby Maxim » Fri Jun 02, 2017 8:35 am

Hello DerDanilo!
You can but it needs to proxy traffic from https://cloud.domain.com/onlyofficedocumentserver to the server where the Document Server is installed.
Here you can find configs
Maxim
 
Posts: 1179
Joined: Tue Oct 11, 2016 2:34 pm

Re: Install onlyoffice in subdirectory

Postby DerDanilo » Mon Jun 05, 2017 8:02 pm

@Maxim
Did you check my config posting?

The document server is supposed to run locally on a different port. We tried this setup and it does not seem to work as it seems hardcoded that the document server expects the url to be on root and does not work with a subfolder.

I checked the config files again and did the following config, please check and post back corrections if needed:

Code: Select all
   location /onlyofficedocumentserver/ {
   proxy_pass http://127.0.0.1:88/;
   proxy_http_version 1.1;
   ProxyPassReverse https://cloud.domain.com/onlyofficedocumentserver http://127.0.0.1:88/
   client_max_body_size 100; # Limit Document size to 100MB
   proxy_read_timeout 3600s;
   proxy_connect_timeout 3600s;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection $proxy_connection;
   proxy_set_header X-Forwarded-Host $the_host/onlyofficedocumentserver;
   proxy_set_header X-Forwarded-Proto $the_scheme;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }


As I understand it is important to define:
Code: Select all
 proxy_set_header X-Forwarded-Host $the_host/onlyofficedocumentserver;


And to put a trailing slash:
Code: Select all
proxy_pass http://127.0.0.1:88/;


Is the following required?
Code: Select all
ProxyPassReverse https://cloud.domain.com/onlyofficedocumentserver http://127.0.0.1:88/
DerDanilo
 
Posts: 5
Joined: Wed May 31, 2017 2:15 pm

Re: Install onlyoffice in subdirectory

Postby Maxim » Tue Jun 06, 2017 8:17 am

Hello DerDanilo!
Try this one, it should proxy all https traffic from /onlyofficedocumentserver to 127.0.0.1:88

Code: Select all
#Use this example for the proxy document server running at '127.0.0.1:88'
# into the virtual directory 'onlyofficedocumentserver'.

upstream docservice {
  server 127.0.0.1:88;
}

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;
    "" $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/onlyofficedocumentserver;
proxy_set_header X-Forwarded-Proto $the_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


server {
  listen 0.0.0.0:80;
  listen [::]:80 default_server;
  server_tokens off;

  location /onlyofficedocumentserver/ {
    proxy_pass http://docservice/;
    proxy_http_version 1.1;
  }
}
Maxim
 
Posts: 1179
Joined: Tue Oct 11, 2016 2:34 pm

Re: Install onlyoffice in subdirectory

Postby DerDanilo » Sat Jun 10, 2017 8:22 am

I used this config as basic and came up with the following that I put in the Seafile Server manual here:
https://manual.seafile.com/deploy/only_office.html

Please check the summarized nginx config example regarding OnlyOffice.
Thus far it seems to work fine:
https://manual.seafile.com/deploy/deplo ... ig-example

We need some help regarding editing OpenDocument files and saving them back into that format though, any ideas?
DerDanilo
 
Posts: 5
Joined: Wed May 31, 2017 2:15 pm

Re: Install onlyoffice in subdirectory

Postby Maxim » Tue Jun 13, 2017 7:15 am

Hello DerDanilo!
We need some help regarding editing OpenDocument files and saving them back into that format though, any ideas?

OnlyOffice can edit Open XML Format Document file only. That's why it needs to convert the file to docx first. There is no way to edit OpenDocument files and save them back into that format.
Maxim
 
Posts: 1179
Joined: Tue Oct 11, 2016 2:34 pm

PreviousNext

Return to Installation issues

Who is online

Users browsing this forum: No registered users and 1 guest