Files
web/nginx/web.conf

18 lines
409 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 供 compose 中 web 容器使用:宿主机挂载 web/dist 与 verify-root仅提供静态与 SPA 回退
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location ~ ^/([A-Za-z0-9._-]+\.(txt|html|xml))$ {
alias /verify-root/$1;
}
location = / {
try_files /index.html =404;
}
location / {
try_files $uri $uri/ /index.html;
}
}