Healthcheck for protected custom Node apps
I have a custom Node app that runs smoothly and passes the Healthcheck when the homepage is not protected.
However, if I try to protect the whole app including the homepage, I get "Not Responding" in my dashboard. I saw that for LAMP apps there is an easy fix here by editing the .htaccess file -- but how do I fix this for a Node app?
This would highly depend on the kind of node app. For LAMP there is a http server (apache) running, which serves up a folder tree. This may or may not be the case for a nodejs server, but it is part of the app code itself and there is no such universal concept of htaccess like for apache.
Which nodejs app are you referring to?
@pdubs For custom apps, simply add a special route in your nodejs app like
/cloudron_healthcheckand make it return a http status code 200. Then fixup the healthCheckPath of your app's CloudronManifest.json.