mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 14:47:24 +02:00
Add proxying to github for non-existing local assets
This commit is contained in:
parent
de524f8acc
commit
0bdec08032
@ -2,6 +2,17 @@ server {
|
||||
listen ${NGINX_PORT};
|
||||
location / {
|
||||
root /assets;
|
||||
try_files $uri $uri/ @github;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location @github {
|
||||
rewrite ^ /netbootxyz$uri break;
|
||||
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
|
||||
proxy_pass https://github.com;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user