Przeglądaj źródła

fix🐛: 增加nginx配置history路由支持

lwnmengjing 4 lat temu
rodzic
commit
31b5b8bc1d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      scripts/k8s/default.conf

+ 1 - 0
scripts/k8s/default.conf

@@ -9,6 +9,7 @@ server {
   location / {
       root   /usr/share/nginx/html;
       index  index.html index.htm;
+      try_files $uri $uri/ /index.html;
   }
 
   location /api {