Open futzle opened 8 months ago
Given that the blessed configuration (use the published container) does not handle TLS termination, it is not clear this problem is applicable.
TLS termination
It's not about TLS termination for incoming requests, it's about making outgoing TLS requests for proxied media hosted on a third-party server. Pretty sure that the Docker container's copy of nginx still does that: https://github.com/jointakahe/takahe/blob/7c34ac78eddc54f8d1918d36c8baf822a104ffbb/docker/nginx.conf.d/default.conf.tpl#L48
OH I see, ok.
Yeah, that's a problem
Issue
A remote server has been configured to reject anything older than TLS 1.2. When viewing media (also user avatar) of that user, the image is not fetched from the remote server.
Fetching the URL of the image directly reveals a 502 error, and this appears in the nginx logs:
Possible cause
It seems that nginx forwards proxied requests using TLS 1.2 by default.
Possible fix
Add to /etc/nginx/conf.d/default.conf[.tpl] the
proxy_ssl_protocols
parameter:After restarting the nginx service, the image fetches.
Version
Takahē 0.10.1
Disclaimer: my installation is non-standard and been de-Dockerized. I am also not very knowledgeable about nginx so I can't say if this breaks something else.
Edit: multiple typos