nginx配置项:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream wsbackend{
server 47.96.72.21:8088;
#keepalive 1000;
}
server {
listen 443;
server_name lidoov.lidoogroup.com;
ssl on;
ssl_certificate cert/5729388_lidoov.lidoogroup.com.pem;
ssl_certificate_key cert/5729388_lidoov.lidoogroup.com.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;
location @router {
rewrite ^.*$ /index.html last;
}
location / {
root /lidoov/lidoov/dist/;
index i