Try the fastest and simplest way to install ONLYOFFICE

Can not access file using response URL from document server

Can not access file using response URL from document server

Postby ghartaan » Wed Sep 06, 2017 11:24 am

I am running document server in a docker container on a linux host machine. I am using conversion service of document server to generate thumbnails for my files. I send a post request to document server and gets back the response in xml. The response is in the following form:

<?xml version="1.0" encoding="utf-8"?>
<FileResult>
<FileUrl>http://172.17.0.2/cache/files/conv_pdf_1280_720_pdf/output.pdf/output.pdf?md5=cEUYq6BxASIG6b3qzxhh0A==&amp;expires=1507288279&amp;disposition=attachment&amp;ooname=output.pdf</FileUrl>
<Percent>100</Percent>
<EndConvert>True</EndConvert>
</FileResult>

The generated file url
[url]http://172.17.0.2/cache/files/conv_pdf_1280_720_pdf/output.pdf[/url]
has the private ip [172.17.0.2] of container so not accessible from outside world.
Is there any way to configure document server so that a client on a remote machine can make a request and can access the generated output file using the response url?

Thanks in advance.
ghartaan
 
Posts: 2
Joined: Wed Sep 06, 2017 10:57 am

Re: Can not access file using response URL from document ser

Postby Maxim » Wed Sep 06, 2017 1:36 pm

Hello ghartaan!
See here
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm


Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 1 guest