# Redirect all requests to this server to https server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name login.yourdomain.com; access_log /var/log/nginx/login.yourdomain.com_access.log; error_log /var/log/nginx/login.yourdomain.com_error.log; include conf.d/include/ssl.inc; location / { proxy_pass http://172.17.0.1:8082/; } }