upstream apiserver_jh{
|
ip_hash;
|
server 127.0.0.1:48080;
|
}
|
|
|
server {
|
listen 80;
|
server_name 10.0.2.193;
|
|
error_page 404 404.html;
|
|
location / {
|
root /usr/share/nginx/jinhua/dist-prod;
|
try_files $uri $uri/ /index.html;
|
index index.html index.htm;
|
}
|
|
location /admin-api/ {
|
proxy_redirect off;
|
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header REMOTE-HOST $remote_addr;
|
proxy_set_header Host $http_host;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header Cookie $http_cookie;
|
proxy_pass http://apiserver_jh;
|
}
|
|
#location /doc.html {
|
# proxy_pass http://api-backend/;
|
# index doc.html doc.htm;
|
#}
|
}
|