Hi Seafile team!
I recently installed Seafile using your docker image which is really great
As I am hosting other services aswell I want to use nginx, which is installed on the system itself, as a reverse proxy.
The nginx config looks like this:
server {
listen 443 ssl http2;
server_name seafile . mydomain . com;
ssl_certificate /ssl.cer;
ssl_certificate_key /ssl.key;
proxy_set_header X-Real-IP $remote_addr;
location / {
proxy_pass http://localhost:3001;
}
}
But for some reason the seafile server then redirects me from https:// seafile . mydomain . com to localhost/accounts/login?next=/
I can replace localhost in the address bar myself and open https:// seafile . mydomain . com/accounts/login?next=/ which then works just fine.
I log in on the page and it redirects me to localhost.
Again I can replace localhost and open https:// seafile . mydomain . com/ which works fine again.
When I edit my nginx configuration and replace localhost with 127.0.0.1 then I always get redirected to 127.0.0.1.
Any ideas how I could fix this? I’d really appreciate it!