-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some considerations before pushing the public subdomain gateway #975
Comments
The only redirect that happens is when you make a path-based request to a subdomain gateway root and your reverse proxy adds
The catch-all reverse proxy for @markg85 do you mind providing an example config as a demonstration of the reverse-proxy-misconfiguration-problem you describe? I worry I did not understand your concerns fully. |
Ah, right, it might work if - and only if - a web admin setting up the reverse proxy for an ipfs gateway sets it up in such a way that It's annoying that this subdomain gateway change forces a change in nginx configuration. So let me flip the question. |
Introduction of subdomains was unfortunately the only way we could get proper isolation between content roots in existing web browsers. Good news is that it was one-time change. When it comes to Nginx-based setup, you want to run a subdomain gateway on a unique domain name, so all you need is:
You can also forward only specific entry points by hand, those are: I'm closing this as I assume your initial concerns got addressed, but lmk if anything is left unclear, or if subdomain gateway docs could be improved somehow. |
Hi,
I've been watching the weekly videos and saw the idea to rewrite the public domain gateway redirect from:
some.long.url.<gateway>
to:
some-long-url.<gateway>
While i understand both perfectly fine (ultimately they are both to fix the domain certificate issue). Please consider this change very carefully!
You could very well mess up an administrator's time if you do a redirect to a subdomain that might (incidentally) already exist.
And even if it doesn't, there might (will!) be webserver/reverse proxy setups that will give default landing pages if you rewrite public subdomains in either format. My webserver would in fact show a default landing page, not the IPFS page.
I'd therefore like to ask to carefully consider if you actually need this feature. Or at the very least to no enable it by default on public gateway domains. I'd argue that you should whitelist domains that properly allow it and go for the path based route by default (that being /ipns/some.long.url)
Best regards,
Mark
The text was updated successfully, but these errors were encountered: