TomvB
August 21, 2017, 3:45pm
1
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
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.
TomvB
August 22, 2017, 6:25pm
3
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.
ccnet.conf
[General]
SERVICE_URL = http://seafile.yourdomain.com
... you should have more config in here...
nginx config
server {
server_name sync.yourdomain.com;
include snippets/acme.conf;
include snippets/ssl.conf;
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem;
This file has been truncated. show original
I will try this out soon… Not really a nice solution in combination with seafile, but worth trying.
Thanks anyway…
themmm
August 19, 2020, 6:27pm
4
Any chance to post the file again? The Link is not working anymore
THX
themmm