server {
listen 443 ssl;
server_name www.xxx.com;
ssl_certificate /usr/local/nginx/conf/sm3/1_www.xxx.com_bundle.crt;
ssl_certificate_key /usr/local/nginx/conf/sm3/2_www.xxx.com.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TlSv1.1 TLSv1.2;
ssl_ciphers SM2-WITH-SMS4SM3:ECDH:AESGCM:HIGH:MEDIUM:!RC4:!DH:!MD5:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
}
location /api/ {
rewrite ^/xx_api/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8010;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#