18 lines
565 B
Plaintext
18 lines
565 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
listen 443 ssl;
|
||
|
server_name inet-ip.aixiao.me;
|
||
|
ssl_certificate /opt/nginx/cert/aixiao.me.cer;
|
||
|
ssl_certificate_key /opt/nginx/cert/aixiao.me.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 / {
|
||
|
proxy_pass http://localhost:90;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
}
|
||
|
}
|