mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 23:25:54 +03:00
[GH-ISSUE #1220] Fallback to the Internet if Images cant be found local #347
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#347
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 @oe3gwu on GitHub (Mar 21, 2023).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1220
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
If I change "set live_endpoint" to a local endpoint, netboot shoot try to find the image. If the image isnt found locally, an automatically fallback to https://github.com/netbootxyz should happen. Currently the Boot Process fails.
Describe alternatives you've considered
Download all the Images, thats nice but really not a solution for a Raspberry Pi Docker Container.
Additional context

@miawgogo commented on GitHub (Jan 24, 2024):
I have managed to modify the nginx config to do this on my instance with the following settings
its not the best as its a combination of stuff from stackoverflow and some of my own config. the fallback is what redirects it to the github mirror if it cant find a file and the
@handle_redirectis to hide the redirect fromgithub.comtoobjects.githubusercontent.com. Ive not added caching to my config yet, but i will at somepoint to help with performance@grmrgecko commented on GitHub (Mar 6, 2024):
To add caching:
@gissf1 commented on GitHub (Nov 2, 2024):
I skipped the caching for now on my system, but I think you can simplify the nginx config (or at least it worked for me) by doing this to simply redirect the client to the public live server:
@LATINO-BICEPS commented on GitHub (Nov 29, 2025):
@grmrgecko Is this still working for you? My cache dir is growing but nothing is being pulled from it. There are no changes in my nginx config and I have modified local-vars.ipxe to
set live_endpoint http://x.x.x.x:8080.