server {
    listen 80;
    server_name api.sojorn.net;

    # Allow Certbot to validate (it uses .well-known/acme-challenge)
    location /.well-known/acme-challenge/ {
        root /var/www/html;
    }

    location / {
        return 301 https://$host$request_uri;
    }
}
