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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.