Edit this file /etc/nginx/sites-available/default
and replace all contents with:
server {
server_name my-domain.xyz;
root /home/my-username/www;
location /project1 {
proxy_pass http://localhost:3001;
}
location /project1-static {
alias /home/src/project1/static
}
}
This simple config is compatible with sudo certbot --nginx