haiwen/seafile-docker

Use Seafile behind serverwide nginx proxy

ToniSoftware opened this issue · 4 comments

Hello,

I'm trying to get this docker to work behind my nginx proxy docker (jwilder/nginx-proxy) but anything I tried until now didn't work.

Can someone help me out?

Thanks in advance

wngr commented

I'm overriding the following through v /opt/nginx-proxy/proxy.conf:/etc/nginx/proxy.conf:

# HTTP 1.1 support
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;

# Mitigate httpoxy attack (see README for details)
proxy_set_header Proxy "";

@ToniSoftware - What errors were you getting and in which log files?

@jshank
i get a 502 and in nginx-proxy logs

nginx.1    | 2019/01/09 22:22:56 [error] 38#38: *1 no live upstreams while connecting to upstream, client: ip, server: seafile.domain.tld, request: "GET / HTTP/2.0", upstream: "http://seafile.domain.tld/", host: "seafile.domain.tld"
nginx.1    | 2019/01/09 22:22:56 [error] 38#38: *1 no live upstreams while connecting to upstream, client:ip, server: seafile.domain.tld, request: "GET /favicon.ico HTTP/2.0", upstream: "http://seafile.domain.tld/favicon.ico", host: "seafile.domain.tld", referrer: "https://seafile.domain.tld/"
k0va1 commented

I have the same issue. Is there any solutions?