catchall_document addition on Droplet rather than App?

Hi, I am hosting a React application on a Droplet using nginx. I can currently access the homepage and anything it Redirects to, but if I Refresh or type a specific page’s URL, I get a 404.

I’ve searched and found that I need a catchall_document: index.html line of code in my app somehow. But all the answers that I can find about doign that assume the SPA is on a DigitalOcean App rather than a Droplet. How do I set up a YML file on my Droplet?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!