Browse Source

fix: 修改文件夹名称

master
liuchen 9 months ago
parent
commit
52bea9e656
  1. 4
      Dockerfile
  2. 2
      nginx.conf

4
Dockerfile

@ -3,5 +3,5 @@ FROM nginx:WIN-1.25.3
WORKDIR /opt/sfms3.0 WORKDIR /opt/sfms3.0
COPY nginx.conf /usr/local/nginx/conf/nginx.conf COPY nginx.conf /usr/local/nginx/conf/nginx.conf
# 将dist文件中的内容复制到 /opt/sfms3.0-view 这个目录下面 # 将dist文件中的内容复制到 /opt/sfms3.0-go-view 这个目录下面
COPY dist/ /opt/sfms3.0-view COPY dist/ /opt/sfms3.0-go-view

2
nginx.conf

@ -38,7 +38,7 @@ http {
proxy_cache_valid 200 304 12h; proxy_cache_valid 200 304 12h;
proxy_cache_key $host$uri$is_args$args; proxy_cache_key $host$uri$is_args$args;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
root /opt/sfms3.0-view; root /opt/sfms3.0-go-view;
index index.html index.htm; index index.html index.htm;
} }
} }

Loading…
Cancel
Save