Add proxying to github for non-existing local assets

This commit is contained in:
Andrew Y 2024-02-19 02:04:22 +00:00 committed by Andrey Yantsen
parent de524f8acc
commit 0bdec08032

View File

@ -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;
}
}