You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1000 B

server {
listen 80;
server_name yskt.zy-its.com;
root /opt/nginx-root/;
location /api {
proxy_pass http://zz-web/api;
proxy_redirect off;
}
location /{
root /opt/nginx-root;
index index.html index.htm index.php;
}
}
server {
listen 443;
server_name yskt.zy-its.com;
ssl on;
ssl_certificate /etc/nginx/cert/6107478_yskt.zy-its.com.pem;
ssl_certificate_key /etc/nginx/cert/6107478_yskt.zy-its.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 /{
root /opt/nginx-root;
index index.html index.htm index.php;
}
location /api {
proxy_pass http://zz-web/api;
proxy_redirect off;
}
}