server { listen 443 ssl; server_name logs.chudnick.com ssl_certificate "/etc/nginx/tls/fullchain.pem"; ssl_certificate_key "/etc/nginx/tls/privkey.pem"; set $upstream_authelia https://auth.chudnick.com/api/verify; resolver 192.168.20.34; location / { proxy_pass http://127.0.0.1:3100; } } server { listen 80; server_name logs.chudnick.com; return 301 https://$host$request_uri; }