liuchen
10 months ago
3 changed files with 55 additions and 2 deletions
@ -1,8 +1,8 @@ |
|||||
# port |
# port |
||||
VITE_DEV_PORT = '26111' |
VITE_DEV_PORT = '27110' |
||||
|
|
||||
# production path |
# production path |
||||
VITE_BASE_URL = 'http://dev.ccwin-in.com:26112' |
VITE_BASE_URL = 'http://dev.ccwin-in.com:27110' |
||||
|
|
||||
# 租户开关 |
# 租户开关 |
||||
VITE_APP_TENANT_ENABLE=false |
VITE_APP_TENANT_ENABLE=false |
@ -0,0 +1,7 @@ |
|||||
|
# 设置基础镜像 |
||||
|
FROM nginx:WIN-1.25.3 |
||||
|
|
||||
|
WORKDIR /opt/zhucheng |
||||
|
COPY nginx.conf /usr/local/nginx/conf/nginx.conf |
||||
|
# 将dist文件中的内容复制到 /opt/zhucheng-go-view 这个目录下面 |
||||
|
COPY dist/ /opt/zhucheng-go-view |
@ -0,0 +1,46 @@ |
|||||
|
user root; |
||||
|
worker_processes 2; |
||||
|
|
||||
|
events { |
||||
|
worker_connections 1024; |
||||
|
} |
||||
|
|
||||
|
http { |
||||
|
include mime.types; |
||||
|
charset utf-8,gbk; |
||||
|
default_type application/octet-stream; |
||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
||||
|
'$status $body_bytes_sent "$http_referer" ' |
||||
|
'"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"'; |
||||
|
|
||||
|
proxy_cache_path /opt/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g; |
||||
|
access_log logs/access.log main; |
||||
|
sendfile on; |
||||
|
#tcp_nopush on; |
||||
|
keepalive_timeout 600s; |
||||
|
client_max_body_size 200m; |
||||
|
gzip on; |
||||
|
gzip_min_length 10k; |
||||
|
gzip_comp_level 9; |
||||
|
gzip_buffers 4 16k; |
||||
|
gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png; |
||||
|
gzip_vary on; |
||||
|
gzip_disable "MSIE [1-6]\."; |
||||
|
upstream sfms3.0 { |
||||
|
server localhost:25110 weight=10 max_fails=3 fail_timeout=10s; |
||||
|
} |
||||
|
server { |
||||
|
listen 27201; |
||||
|
server_name_in_redirect off; |
||||
|
server_name dev.ccwin-in.com; |
||||
|
location / { |
||||
|
proxy_cache my_zone; |
||||
|
proxy_cache_valid 200 304 12h; |
||||
|
proxy_cache_key $host$uri$is_args$args; |
||||
|
try_files $uri $uri/ /index.html; |
||||
|
root /opt/sfms3.0-go-view; |
||||
|
index index.html index.htm; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
Loading…
Reference in new issue