Running n8n locally, I enabled HTTPS with the following settings:
export N8_SECURE='true'
export N8_KEY_PATH='/new/path/to/key'
export N8_CERT_PATH='/new/path/to/cert'
Yet the interface still launches on HTTP. How can I properly switch to HTTPS?
Running n8n locally, I enabled HTTPS with the following settings:
export N8_SECURE='true'
export N8_KEY_PATH='/new/path/to/key'
export N8_CERT_PATH='/new/path/to/cert'
Yet the interface still launches on HTTP. How can I properly switch to HTTPS?
hey, make sure you set n8n_protocol to ‘https’ as well. sometimes the system cache old configs, so a full restart might help. check your env vars are applied correctly.
After working on a self-hosted n8n deployment, I encountered HTTPS configuration issues similar to what you described. I noticed that even after exporting the secure environment variables and specifying the key paths, an internal configuration file reset the protocol to HTTP. A rough workaround was to verify every configuration layer in the deployment process. I ended up updating both environment variables and the web server configurations that proxy n8n. Ensuring that the file permissions allow n8n to read the certificate file was also crucial. A thorough review and reset of all related settings finally switched the interface to HTTPS.