#Backend base URL
4 messages · Page 1 of 1 (latest)
I recommend that you terminate TLS outside of the backend process. It's just usually simpler, than trying to get Node do the right thing.
That's what we do. It's a reverse proxy that does termination and auth, and then it's all trusted http (no S) traffic behind that
You CAN get it working in node too though, if you really want to.
Some context:
The baseUrl just tells the browser what to talk to. It doesn't tell the backend where to bind. There's a backend.listen config for that purpose. https://github.com/backstage/backstage/blob/aa5679b64fa6e98fdfb2abba080eabb0343bc9f4/packages/backend-common/config.d.ts#L40
But you'll also have to fill in the https config correctly https://github.com/backstage/backstage/blob/aa5679b64fa6e98fdfb2abba080eabb0343bc9f4/packages/backend-common/config.d.ts#L55
As well as perhaps telling node how to understand your own certs