server {
listen 443 ssl;
server_name api.xxx.com;
# index index.html index.htm index.php;
# root /aweb/api;
ssl_certificate cert/api.pem;
ssl_certificate_key cert/api.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
location /client/ {
proxy_pass http://112.xx.xx.xx:17890/;
proxy_redirect default;
}
location /admin/ {
proxy_pass http://112.xx.xx.xx:17891/;
proxy_redirect default;
}
}