Make Firebase run behind a proxy
Budget: $30 – $250 USD
I have a Firebase project which only supports directory requests. But my requirement is subdomains. But Firebase does not support unlimited subdomains.
So I have to create a proxy. This proxy will receive subdomain requests from browser, and send it to Firebase as if proxy is the client. And when this proxy receives the response from Firebase, It will send the response to the browser as if response comes from proxy.
This way, proxy will take the subdomain request, send it to firebase as directory. and reply to browser as if its a subdomain response.
Example - Proxy will receive cs1.example.com and cs2.example.com and like this cs25000.example.com
We will have thousands of subdomain requests. And Firebase will only get directory requests like example.com/cs1 or example.com/cs2 or example.com/25000. And proxy will send response as if its coming from cs1.example.com or cs2.example.com ( mapping subdomain request to directory back n forth
So I have to create a proxy. This proxy will receive subdomain requests from browser, and send it to Firebase as if proxy is the client. And when this proxy receives the response from Firebase, It will send the response to the browser as if response comes from proxy.
This way, proxy will take the subdomain request, send it to firebase as directory. and reply to browser as if its a subdomain response.
Example - Proxy will receive cs1.example.com and cs2.example.com and like this cs25000.example.com
We will have thousands of subdomain requests. And Firebase will only get directory requests like example.com/cs1 or example.com/cs2 or example.com/25000. And proxy will send response as if its coming from cs1.example.com or cs2.example.com ( mapping subdomain request to directory back n forth