Feat: Web loader

This commit is contained in:
MangoPig
2026-06-15 06:59:57 +01:00
parent 90de5ca868
commit 99538e30c8
14 changed files with 559 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
map $http_cookie $moku_bootstrap_document {
default /__loader/index.html;
"~*(^|; )moku_loader_seen=1($|;)" /index.html;
}
server {
listen 80;
server_name _;
@@ -5,8 +10,19 @@ server {
root /usr/share/nginx/html;
index index.html;
location = / {
add_header Cache-Control "no-store";
rewrite ^ $moku_bootstrap_document last;
}
location ^~ /__loader/ {
access_log off;
add_header Cache-Control "no-store";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
try_files $uri $uri/ $moku_bootstrap_document;
}
location /favicon.ico {