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
The mastodon and sidekiq in the container read variables such as HTTP_PROXYHTTPS_PROXYNO_PROXY in env and try to use these proxies for queue operations.
Reason for change
My environment:
- OS: Ubuntu 24.04 LTS
- How docker service was installed: distro's package manager
- Docker: 27.3.1
In some special network environments(In Chinese mainland, some websites are blocked), the queue tasks cannot access other instances, but returns errors: HTTP::ConnectionError: failed to connect: Host is unreachable, HTTP::TimeoutError: Read timed out after 5 seconds on... etc. Use curl -vvv xxx.com of course it cannot be connected.
But I try to configure docker-compose.yml like this (the proxy service runs on the host, host's IP is 172.17.0.1):
then I tried docker exec -it mastodon /bin/bash -c 'curl -I https://www.google.com', it works and responses
HTTP/2 200
content-type: text/html; charset=ISO-8859-1
content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-Y7BvwRsFDz0ojCGrKnV9BQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
accept-ch: Sec-CH-Prefers-Color-Scheme
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Tue, 29 Oct 2024 19:03:25 GMT
server: gws
...
But now the queue of mastodon instances is still inaccessible to some instances, and there is no new traffic and connection to the host's proxy service.
I also tried enable TUN mode, but I can't seem to access mastodon instances from outside in this mode.
I'm not sure if this is a bug or normal, so I opened this feature issue.
If possible, I would like to know how to configure it to achieve the above effect, or to implement related new features.
And then finally I put on my docker-compose.yml, secrets are removed
Any environment variables should be passed through to the services, but it's on them to then handled them properly. I don't know if Sidekiq has specific requirements. The docs are quite bad on this front; you might want to try http_proxy instead and see if that works.
Is this a new feature request?
Wanted change
The mastodon and sidekiq in the container read variables such as
HTTP_PROXY
HTTPS_PROXY
NO_PROXY
in env and try to use these proxies for queue operations.Reason for change
My environment:
In some special network environments(In Chinese mainland, some websites are blocked), the queue tasks cannot access other instances, but returns errors:
HTTP::ConnectionError: failed to connect: Host is unreachable
,HTTP::TimeoutError: Read timed out after 5 seconds on...
etc. Usecurl -vvv xxx.com
of course it cannot be connected.But I try to configure
docker-compose.yml
like this (the proxy service runs on the host, host's IP is172.17.0.1
):then I tried
docker exec -it mastodon /bin/bash -c 'curl -I https://www.google.com'
, it works and responsesBut now the queue of mastodon instances is still inaccessible to some instances, and there is no new traffic and connection to the host's proxy service.
I also tried enable TUN mode, but I can't seem to access mastodon instances from outside in this mode.
I'm not sure if this is a bug or normal, so I opened this feature issue.
If possible, I would like to know how to configure it to achieve the above effect, or to implement related new features.
And then finally I put on my
docker-compose.yml
, secrets are removedProposed code change
No response
The text was updated successfully, but these errors were encountered: