Firebase hosting emulator over https

31 Views Asked by At

Is it possible to have https://localhost:5000 for the hosting firebase emulator setup.

I need this since i am developing a word addin and it requires https.

I have tried using a devtunnel and ngrok but no luck there.

Is there a way to provide dev certificate or something

Thank you and best regards.

1

There are 1 best solutions below

1
somethingsomething On

I don't know anything about the firebase emulator, but from your question it sounds like this is simple http traffic, so you just run a reverse proxy in front of it (nginx, apache http, caddy) that does the TLS termination and forwards the traffic to your firebase emulator over http.

Eg. with caddy this is very simple: https://caddyserver.com/docs/quick-starts/reverse-proxy#https-from-client-to-proxy

You'll then maybe still need to use a different certificate, depending on whether or not the client accepts self-signed ones.