Hello!
Im running Seafile server on custom port 8443 due to provider limitations on 443.
In general routing is working, site is available with ssl, but I have issue with download/upload links - it has no port before ‘/seafhttp/…’ If I add it manually - it start to download.
seafile-server.yml:
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.reverse_proxy.header_up: "Host {http.request.host}"
caddy.reverse_proxy.header_up_1: "X-Real-IP {remote_host}"
caddy.reverse_proxy.header_up_2: "X-Forwarded-For {remote_host}"
caddy.reverse_proxy.header_up_3: "X-Forwarded-Proto https"
seahub_settings.py:
CSRF_TRUSTED_ORIGINS = [‘https://:8443’]
SECURE_PROXY_SSL_HEADER = (‘HTTP_X_FORWARDED_PROTO’, ‘https’)
SERVICE_URL = ‘https://:8443’
FILE_SERVER_ROOT = ‘https://:8443/seafhttp’
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True