events { # worker_connections 1024; } http { server_tokens off; charset utf-8; server { listen 443 ssl http2; # use the certificates ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; server_name example.com; root /var/www/html; index index.php index.html index.htm; location / { proxy_pass http://shellngn:8080/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } }