server {
    listen 80 default_server;
    server_name localhost;
    return 301 https://core.blockstack.org$request_uri;
 
    location / {
        include uwsgi_params;
        uwsgi_pass unix:/path/to/nginx/blockstack_api.sock;
    }
}

server {
    listen 443 default_server;
    server_name localhost;

    ssl on;
    ssl_certificate /path/to/cert/fullchain.pem;
    ssl_certificate_key /path/to/cert/privkey.pem;

    location / {
        include uwsgi_params;
        uwsgi_pass unix:/path/to/nginx/blockstack_api.sock;
    }
}
