haiwen / seafile-docker

A Docker image for Seafile server
Other
544 stars 183 forks source link

/scripts_7.1/bootstrap.py - Should set 'FILE_SERVER_ROOT = "/seafhttp"' into sehub configuration file #210

Closed pini-gh closed 8 months ago

pini-gh commented 4 years ago

Hi,

The FILE_SERVER_ROOT seahub configuration variable should not include the proto and the domain parts. It should just define the root path for seahub : "/seafhttp". this way it works whatever the SEAFILE_SERVER_HOSTNAME environment variable is, especially when it is set to '127.0.0.1' when behind a reverse proxy.

Thanks,

_g.

pini-gh commented 4 years ago

After trying seadroid on my phone I understand this is not so simple. Because the API returns download links after FILE_SERVER_ROOT. I think it should use SERVICE_URL+FILE_SERVER_ROOT instead. Then the above configuration proposal would be OK.