-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Proxy single file #1029
Comments
Hi, Please let me know if this helped you 😉 |
Cool, it works for the page: setup.lauraundflorian.de But I cant get the raw version to work, but might be a github issue |
It seems to me like you are using a redirect host instead of a proxy host. Curl will (by default) not follow redirects. You can however tell curl to follow such redirects using Edit:
location / {
proxy_pass https://raw.githubusercontent.com/blackliner/raspi_monitor/main/install.sh;
proxy_redirect off;
add_header Content-Type text/plain;
} |
Maybe this helps: #320 |
sweet, that did it!! thanks alot! |
Issue is now considered stale. If you want to keep it open, please comment 👍 |
I would like to do something similar to get.docker.com, serve a static file that can be curl'd into bash to bootstrap some stuff. Is this possible with maybe custom nginx configs?
Preferably I would like to just forward this subdomain to a github raw file like this one:
https://github.com/blackliner/raspi_monitor/blob/main/install.sh
The text was updated successfully, but these errors were encountered: