Feat: Web loader
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user