Browse Source

http改成https

master
ljlong_2630 1 month ago
parent
commit
1547246d8e
  1. 4
      .env.production
  2. 2
      nginx_prod.conf

4
.env.production

@ -1,2 +1,2 @@
VITE_BASE_URL=http://qcjeam.faway.com/api/admin-api
VITE_BASE_URL_IMAGE=http://qcjeam.faway.com/api/admin-api
VITE_BASE_URL=https://qcjeam.faway.com/api/admin-api
VITE_BASE_URL_IMAGE=https://qcjeam.faway.com/api/admin-api

2
nginx_prod.conf

@ -34,7 +34,7 @@ http {
server_name_in_redirect off;
server_name _;
location /api/ {
proxy_pass http://eam/;
proxy_pass https://eam/;
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;

Loading…
Cancel
Save