reverse proxying doesn't work #11
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
while setting a reverse proxy for the cluster, using nginx on a non-coopcloud server, i've found these issues:
setting an
upstreamblock to every garage instance doesn't work, because traefik will close a connection with an unknown SNI, and theproxy_ssl_nameoption that would help requires a variable that's only available on the nginx commercial subscriptionsetting a single garage instance on
proxy_passwill connect to the garage instance but return signature invalid errors, because the hostname is signed along with other info, but traefik appears to keep using the SNI:the only thing that worked so far is setting a gateway node on the reverse proxy host (or on an intermediate host):
Could you provide more information on your setup? Are you saying that garage is installed as a binary+nginx and you're having trouble connecting it with other nodes? Or, are you trying to put nginx in front of garage nodes deployed with coop-cloud?
this, since traefik fronts garage, the communication between several traefiks and nginx is blocked because traefik expects the exact domain and nginx won't do that unless you pay the commercial subscription, so i had to deploy a garage binary along the nginx server and set it as a localhost gateway.
i wanted the nginx option to set cache policies, but apparently i can do that with tools like s3cmd, so this may not be needed at all! i'm still testing stuff though.
Gotcha, glad you've sorted out a solution! On another note It might be interesting to create a garage gateway recipe...
i think we can do that already since the gateway role is set during layout configuration. i'd like to have caching middleware though, that's why i was going with nginx. maybe this could become a
compose.cache.yml?