chore: 重构数据库迁移与 nginx 配置目录
This commit is contained in:
26
nginx配置/sproutgate-frontend.conf
Normal file
26
nginx配置/sproutgate-frontend.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 2121;
|
||||
server_name sproutgate-frontend;
|
||||
|
||||
root /shumengya/www/self-made/sproutgate-frontend;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
# SPA fallback
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ^~ /assets/ {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
location ~* \.(css|js|map|png|jpg|jpeg|gif|svg|ico|webp|woff2?|ttf|eot)$ {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user