|
|
@@ -0,0 +1,24 @@
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ server_name review.seec.seecoder.cn;
|
|
|
+
|
|
|
+ root /usr/share/nginx/html;
|
|
|
+ index index.html;
|
|
|
+
|
|
|
+ # 解决 Vue Router history 模式刷新 404
|
|
|
+ location / {
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ # 静态资源缓存
|
|
|
+ location ~* \.(js|css|png|svg|ico|woff2?)$ {
|
|
|
+ expires 7d;
|
|
|
+ add_header Cache-Control "public, immutable";
|
|
|
+ }
|
|
|
+
|
|
|
+ # 健康检查
|
|
|
+ location /health {
|
|
|
+ return 200 "ok";
|
|
|
+ add_header Content-Type text/plain;
|
|
|
+ }
|
|
|
+}
|