#Backend base URL

4 messages · Page 1 of 1 (latest)

exotic grove
#

Hi. How do I make the backend to listen on https instead of http? I added https on backend.baseUrl but it somehow still listen on http.

vocal ore
#

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

GitHub

Backstage is an open platform for building developer portals - backstage/config.d.ts at aa5679b64fa6e98fdfb2abba080eabb0343bc9f4 · backstage/backstage