You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the seafile docker container
is behind a proxy that does the TLS termination,
such that the seafile docker sees HTTP only,
then, it receives requests
where the following headers are set in the following way:
X-Forwarded-Proto: https
X-Forwarded-Ssl: on
Because the default NGINX template has this directive:
proxy_set_header X-Forwarded-Proto $scheme
the request gets transmitted to gunicorn with the following,
contradictory values:
X-Forwarded-Proto: http
X-Forwarded-Ssl: on
Thus Seafile rejects the requests
with a "Contradictory scheme headers" error.
We instead change the header only when it is not set.
Fixes#226.
0 commit comments