mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #1029] Proxy single file #865
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#865
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @blackliner on GitHub (Apr 19, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1029
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
@p-fruck commented on GitHub (May 3, 2021):
Hi,
I'm not working on this project but I might have a solution for you. Under
Proxy Hosts -> Custom locationsyou can redirect a specific subfolder to another resource, eg. https://example.com/subfolder -> https://github.com/someblobYou can also set
/to be the subfolder if you want to redirect example.com to the github blob.Please let me know if this helped you 😉
@blackliner commented on GitHub (May 6, 2021):
Cool, it works for the page: setup.lauraundflorian.de
But I cant get the raw version to work, but might be a github issue
@p-fruck commented on GitHub (May 6, 2021):
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
curl -L example.com. If you use proxy hosts, you are not redirecting your http/s traffic, so it should work.Keep in mind that you have to proxy your incoming http traffic to the raw github file! If you force SSL redirection on your host, you once again have to tell curl to use the
-Lflag!Edit:
It does indeed not work out of the box by setting the location, but I have a have a configuration example for you.
/location)@chaptergy commented on GitHub (May 12, 2021):
Maybe this helps: https://github.com/jc21/nginx-proxy-manager/issues/320
@blackliner commented on GitHub (May 14, 2021):
sweet, that did it!! thanks alot!
@github-actions[bot] commented on GitHub (Mar 13, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍