# Service server { listen 80; server_name service.aaronlangham.com; return 301 https://$server_name$request_uri; } # Service SSL server { listen 443 ssl; server_name service.aaronlangham.com; ssl_certificate /etc/letsencrypt/live/service.aaronlangham.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/service.aaronlangham.com/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://ip:port; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }