I’ve gotten Seafile working within my internal network using fixed IPs, but I’m at a loss setting up my nginx.conf to access Seafile via a domain name. This is my nginx location block for Seafile.
This is nginx running on the Windows layer, redirecting to the docker container listening on port 9080.
At the moment, what’s happening is that I access domain/seafile/, and I get redirected to domain/accounts/login, which breaks. I don’t see a redirect to /accounts in nginx.conf, so I’m assuming that happens in Seafile itself.
Based on my digging, it seems like Seafile doesn’t play well with subdirectories, and requires a subdomain to work properly. Somebody correct me if I’m wrong.
I currently have the web UI up and running under a subdomain. However, file upload / download doesn’t work. I have set SERVICE_URL and FILE_SERVER_ROOT in the web settings to https://seafile.domain/ and https://seafile.domain/seafhttp respectively.
Hi. Port 9080 links to the nginx inside the container which then redirects to port 8000 or 8082 in the container. I forgot to mention that the setup works if I’m accessing the container via direct local IP (with appropriate SERVICE_URL and FILE_SERVER_ROOT), which skips the Windows-layer nginx. Therefore I’m fairly certain the problem lies with my Windows-layer nginx.conf.
Update: Turns out the app was caching some bad settings, despite me having changed to a new user account. Deleting the app cache got it working. Thanks for your help @Barolo