server { listen 80; listen [::]:80; location / { return 301 https://$host$request_uri; } location /.well-known/acme-challenge/ { alias /var/lib/dehydrated/acme-challenges/; } }