nginx 配置 https
server { listen 443 ssl; listen [::]:443 ssl; server_name portal.xxx.net; ssl_certificate "/etc/nginx/ssl/shclgc.net.crt"; ssl_certificate_key "/etc/nginx/ssl/shclgc.net_server.key"; ssl_session_cache shared:SSL:1m; ssl_session_timeout 10m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://192.168.1.229:8080; proxy_set_header X-Forwarded-Proto https; proxy_set_header REMOTE_ADDR $remote_addr; proxy_set_header Host $http_host; } }