Deploying Firebase Emulator Suite on EC2

77 views
Skip to first unread message

Costa Giannakopoulos

unread,
Jan 3, 2023, 10:04:11 AM1/3/23
to Firebase Google Group
Hi

I have a deployed test website that I am trying to connect with the Firebase emulator.


In order to connect this to the emulator suite I am trying to deploy the emulator suite on an EC2 instance using NGINX as reverse proxy.

I have the emulator suite deployed over http on http://costagiannakopoulos.com/

I also have the authentication deployed over https on https://auth.costagiannakopoulos.com/

I can use the authentication api successfully to get oobCodes and run my automation.

What I am struggling to do is use the UI because I can see a few requests failing.

These are:
  1. http://costagiannakopoulos.com/api/config
This is the private IP of my EC2 instance - 172.31.40.139:9099

My NGINX config for the UI is this:

costagiannakopoulos_conf_—_sites-available__SSH__ec2-35-177-76-80_eu-west-2_compute_amazonaws_com_.png

My NGINX config for authentication is this:

auth_costagiannakopoulos_conf_—_sites-available__SSH__ec2-35-177-76-80_eu-west-2_compute_amazonaws_com_.png

My firebase.json looks like this:

firebase_json_—_ubuntu__SSH__ec2-35-177-76-80_eu-west-2_compute_amazonaws_com_.png

When I run firebase emulator locally on my machine everything works fine I can use the UI to create accounts.

Here is a screenshot of the issue in the browser:

Firebase_Emulator_Suite.png

I have spent countless hours trying to resolve this and now out of options.

If someone can help me I would be most grateful.

Thanks in advance.
Costa
Reply all
Reply to author
Forward
0 new messages