thunderhub
thunderhub copied to clipboard
Starting Thunderhub with start:secure throws an error.
When starting Thunderhub with npm run start:secure I get the error 'Running a secure server can only be done in production'.
Your environment
- Version of ThunderHub: 0.12.17
- Deployment method: Ubuntu 20.04 direct install (not docker)
- Other relevant environment details: LND v0.12.1-beta "build_tags": [ "autopilotrpc", "signrpc", "walletrpc", "chainrpc", "invoicesrpc", "watchtowerrpc"
To Reproduce Steps to reproduce the behaviour:
- npm run start:secure
Expected behavior
Request a certificate from ZeroSSL for the given PUBLIC_URL and serve the HTTP challenge via the Certificate Validation server. Once the certificate is verified and issued, Thunderhub downloads the certificate and shuts down the Certificate Validation server. Then it will bring up the Thunderhub web server and use the newly provisioned SSL certificates.
Actual behavior
Tell us what happens instead.
[email protected] start:secure node server/utils/secure-server.js
/home/lightning/thunderhub/server/utils/secure-server.js:12 throw new Error('Running a secure server can only be done in production'); ^
Error: Running a secure server can only be done in production
at Object.
Did you find a solution?
You need to add NODE_ENV=production so that it runs with production settings. Apart from that, this setup is very specific to the implementation on Voltage so can't help much here