1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| server { listen 80; listen 443 ssl; server_name stonewuu.com www.stonewuu.com; ssl_certificate /etc/letsencrypt/live/stonewuu.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/stonewuu.com/privkey.pem; ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5"; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; if ($scheme = http) { return 301 https://$host$request_uri; } location ^~ /.well-known/acme-challenge/ { default_type "text/plain"; root /opt/tomcat-8.5.9/blog_data; }
location = /.well-known/acme-challenge/ { return 404; } location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://localhost:8080; }
}
|