Seafile behind a dedicated NGINX proxy

Hi All,

Im trying to split the proxy from seafile.
I have a nginx container and a seafile container, both with different internal ip addresses.
https://manual.seafile.com/deploy/https_with_nginx.html

How can I redirect the media from a standalone nginx proxy server?

location /media {
    root /home/seafile/seafile-server-latest/seahub;
}

and same for seafhttp:

location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;

Seafhttp is only changing 127.0.0.1?

Thanks :slight_smile:

At this point this is standard nginx configuration and not really seafile related. Any how-to guide for setting up a reverse nginx proxy can help you. Seafile being the destination that nginx is passing to is irrelevant.

Ok, I found a topic with interesting things about the config: https://www.reddit.com/r/homelab/comments/6cjyba/seafile_behind_nginx_on_separate_host/

2 Domains to get it working.

I will try this out soon… Not really a nice solution in combination with seafile, but worth trying.
Thanks anyway…

Any chance to post the file again? The Link is not working anymore :frowning:

THX
themmm