How do I configure HTTPS for my on-premise n8n instance?

I attempted HTTPS on my local n8n by setting environment variables. My settings are:

export SECURE_FLAG='enabled'
export SECURE_KEY_PATH='/alternate/path/to/private.pem'
export SECURE_CERT_PATH='/alternate/path/to/certificate.crt'

However, the service still runs on HTTP. How can I enforce HTTPS?

hey, i had a similar issue. i solved it using an nginx reverse proxy cause the env vars sometimes dont get picked up directly. check your startup configs too.