1:代理第三方接口配置需要在nginx.cnf中做对应的配置即可
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /opt/ssl/server.com.crt;
ssl_certificate_key /opt/ssl/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_verify_client on;
ssl_client_certificate /opt/ca/clientCA.crt;
ssl_verify_depth 1;
location /honest/service/honestCheckSingtonTest {
proxy_pass http://192.168.1.112:9004/quer/check;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
root html;
index index.html index.htm;
}
}
}