Doubts about node applications in Hestia

I have added a NodeBB forum to my Hestia server, following the guide in this thread, and using port 3000.

I started the application with its corresponding ./nodebb start and the forum is working with http.

Two issues:

  1. When trying to activate the Let’s Encrypt certificate I get the following error, either via the web or with the v-add-letsencrypt-domain command:

    Error: Let's Encrypt validation status 400 (domain). Details: 403: "IP: Invalid response from http://domain/.well-known/acme-challenge/-

    I have seen this guide on the NodeBB website and have tried to add

   location /.well-known/acme-challenge/ {
       try_files $uri =404;

to the nodejs3000.stpl and nodejs3000.tpl templates in the /usr/local/hestia/data/templates/web/nginx/ directory and tried to restart the application with v-rebuid-user, but I still get the same error.

Any ideas?

  1. On the previous server where I had the forum I added it as a service to systemctl to keep it always active.

    Is this the best option with Hestia or is it better to do it another way?

Thanks in advance.