I am trying to run firebase auth emulator on local and its running fine on local but not run on EC2 instance and i am facing issues that are stated below
{
"projectId": "bubble-dev-361213",
"emulators": {
"auth": {
"host": "localhost",
"port": 9099
},
"firestore": {
"host": "localhost",
"port": 8088
},
"database": {
"host": "localhost",
"port": 9000
},
"storage": {
"host": "localhost",
"port": 9199
},
"ui": {
"enabled": true,
"host": "localhost",
"port": 4000
},
"singleProjectMode": false
},
"storage": {
"rules": "storage.rules"
}
}
This is my firebase.json file on local And below is my nodemon.json file
{
"watch": ["dist/"],
"ext": ".ts,.js",
"ignore": [],
"exec": "node --inspect node_modules/@google-cloud/functions-framework/build/src/main.js --source=dist/ --target=main --debug",
"env": {
"NODE_OPTIONS": "--enable-source-maps",
"FIREBASE_AUTH_EMULATOR_HOST": "18.207.204.161:9099",
"DB_RESET_TOKEN": "ABC",
"CRON_RUN_TOKEN": "ABC",
"ENVIRONMENT": "local"
}
}
i am very new to these type of things I tried running in my local and exposing the firebase emulator using the ngrok and it was working fine(in nodejs with typeScript) also i run my server using the pm2 run dev command
And expose the server and firebase url using the ngrok That work fine on local
But on ec2 instance i'm able to access the firebase emulator but i'm unable to see the data on the emulator ui and facing connection problems.