Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
ljlong_2630 7 months ago
parent
commit
3386b23355
  1. 4
      .env.hella15
  2. 4
      .env.hella16
  3. 24
      nginx_prod.conf

4
.env.hella15

@ -4,10 +4,10 @@ NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.21.32.15/api'
VITE_BASE_URL='https://172.21.32.15:55563/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.15/api/admin-api/infra/file/upload'
VITE_UPLOAD_URL='https://172.21.32.15:55563/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=

4
.env.hella16

@ -4,10 +4,10 @@ NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.21.32.16/api'
VITE_BASE_URL='https://172.21.32.16:55563/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.16/api/admin-api/infra/file/upload'
VITE_UPLOAD_URL='https://172.21.32.16:55563/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=

24
nginx_prod.conf

@ -49,5 +49,29 @@ http {
index index.html index.htm;
}
}
server {
listen 55563 ssl;
server_name_in_redirect off;
server_name _;
ssl_certificate /opt/faway-hella/faway-hella.com.pem;
ssl_certificate_key /opt/faway-hella/faway-hella.com.key;
location /api/ {
proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location /profile/ {
alias /opt/profile/;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /opt/sfms3.0;
index index.html index.htm;
}
}
}

Loading…
Cancel
Save