chore(sync): 上游同步 - 快照导入 upstream/main@e70fe1b9(v1.6.5)并重放本项目差异
This commit is contained in:
1 parent
c9979a4a2b
commit
43c3dd3568
167 files changed
+5792
-7802
No files matched your search
+10
-1
@@ -16,7 +16,7 @@ server {
|
||||
client_max_body_size 1024m;
|
||||
access_log /var/log/nginx/access.log canvas_no_query;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
# Also covers exact SPA aliases (/canvas, /assets, /welcome).
|
||||
# Also covers exact SPA aliases (/canvas, /assets, /welcome, /inspirations).
|
||||
add_header Cache-Control "no-cache, must-revalidate" always;
|
||||
gzip on;
|
||||
gzip_comp_level 5;
|
||||
@@ -158,6 +158,15 @@ server {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
# /inspirations 同时是 React 路由和灵感 JSON 目录;页面入口不能按静态目录重定向。
|
||||
location = /inspirations {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location = /inspirations/ {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user