feat: 支持魔搭创空间 (ModelScope Studio) Docker 部署
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
# ============================================================
|
||||
# Easy-Vibe 魔搭创空间 (ModelScope Studio) Nginx 配置
|
||||
# 为 VitePress 静态站点提供 Web 服务,监听魔搭要求的 7860 端口
|
||||
# ============================================================
|
||||
|
||||
server {
|
||||
listen 7860;
|
||||
server_name localhost;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml;
|
||||
gzip_min_length 1024;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri.html $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user