events { use epoll; worker_connections 65535; } http { server { listen 80; server_name xxx.com; return 301 https://xxx.com; } server { listen 443; server_name xxx.com; ssl on; ssl_certificate /etc/letsencrypt/live/0src.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/0src.com/privkey.pem; ssl_dhparam /etc/ssl/certs/dhparams.pem; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; charset utf-8; location / { proxy_pass http://127.0.0.1:8197; } } }