Try the fastest and simplest way to install ONLYOFFICE

reverse proxy: specific nginx proxy settings for onlyoffice?

IIS, Apache

reverse proxy: specific nginx proxy settings for onlyoffice?

Postby philm » Mon Sep 05, 2016 11:45 am

Hello
I managed to install onlyoffice in an ubuntu14 VM (KVM),and docker, with only doc+community services. Everything is fine (connections, editions, data mapping between VM and containers...) when the VM is on my public network.
But as soon as I put the onlyoffice VM behind my nginx reverse proxy, it hangs on editing documents (configuration, connection on FQDN and data are Ok). First I try to make it work only with http...

1) "public" net

Code: Select all
10.0.0.3
("public" office on http)  -> Everything is OK   on http://10.0.0.3
10.0.0.2
(Reverse Proxy nginx)

2) behind reverse proxy (nat network)
Code: Select all
10.0.0.2   <---------->             192.168.0.2
(Reverse Proxy nginx)                  |
"public net"                         |
CNAME server1.mydomain             192.168.0.3 ->  Ok
CNAME server2.mydomain             192.168.0.4 ->  Ok    
CNAME ooffice.mydomain             192.168.0.5 -> http://ooffice.mydomain
                                                hangs on editing document   

/etc/nginx/sites-enables/myconf
...
server {
server_name server1.mydomain;
location / {
proxy_pass http://192.168.0.3/ ;
include includes/proxy.inc ;
}
}

server {
server_name office.mydomain;
location / {
proxy_pass http://192.168.0.5/ ;
include includes/proxy.inc ;
}
}

my proxy.inc files

proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Should I change some settings in my reverse-proxy nginx VM? ...or should I look at specific settings in my OnlyOffice VM/containers?
Thanks in advance,
Phil
philm
 
Posts: 4
Joined: Wed Jul 20, 2016 8:40 am

Re: reverse proxy: specific nginx proxy settings for onlyoff

Postby Alex » Mon Sep 05, 2016 3:12 pm

it hangs on editing documents (configuration, connection on FQDN and data are Ok).

Could you please provide us with additional information about the issue, please describe what exactly happens.
Is there any ways t get access to the portal?
Feel free to sent the info to server@onlyoffice.com
Alex
 
Posts: 50
Joined: Sat Nov 07, 2015 3:19 pm

Re: reverse proxy: specific nginx proxy settings for onlyoff

Postby philm » Mon Sep 05, 2016 8:30 pm

Thank you for your answer
Alex wrote:Could you please provide us with additional information about the issue, please describe what exactly happens.

Behind my reverse-proxy, my portal is functionnal (except doc edition):
- administrator is able to set/change every parameters
- people can register to the portal
- all configured users are able to list their files/documents, shared document etc.
BUT when I click one document, the editor is lauching : messages "Loading document" ... after a while it ends with an error message (pop-up) : "Download Failed, press "Ok" to return to document list"

New (very very curious!): one hour ago, I installed the onlyoffice ios app on my iPad... and it works on the iPad : I can read/modify documents!!!??
It seems that my "nginx reverse-proxy" has a lack of parameters for PC clients, no ?
Note: I tested Linux(Firefox and chrome) and Safari ...same issue with all of them

Thanks
Phil.
philm
 
Posts: 4
Joined: Wed Jul 20, 2016 8:40 am

Re: reverse proxy: specific nginx proxy settings for onlyoff

Postby Alex » Fri Sep 09, 2016 12:56 pm

Hi Phil,
We need to access the portal in order to analyse the issue.
Please send the credentials to support@onlyoffice.com
regards
Alex
 
Posts: 50
Joined: Sat Nov 07, 2015 3:19 pm


Return to Web server configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron