Hi there -
I’m reviewing App Platform for a react/nodejs deployment. We’re using Firebase Auth for user management.
A best practice when integrating Firebase Auth into the auth flow is to set up a reverse proxy for /__/auth. I currently do this using nginx on my Droplets. I don’t really want to spin up an extra Droplet to redirect to App Platform. See more here: https://firebase.google.com/docs/auth/web/redirect-best-practices (Option 3).
Are reverse proxies possible using App Platform? If not, is there a suggested alternative for Firebase Auth?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
App Platform doesn’t have built-in reverse proxy support, you can post this as an idea on the DigitalOcean ideas board:
But you should still be able to use Firebase Auth without needing an extra Droplet, for example, you could use an extra App Platform’s backend service to create an API route in your Node.js app that proxies
__/auth
requests to Firebase.Or another option is to set up a Cloudflare Worker or similar edge function to handle the redirection.
Also, if you already have a Droplet for other tasks, you could configure Nginx there to act as a proxy.
- Bobby