This repository builds on @gordalina's fly-tier to allow you to stand up an NGINX proxy in front of your private, hosted tier.run (RIP) instance on Fly.io. This may be useful in case your app is hosted on another platform (like Vercel), but you want to use Fly.io for your self-hosted Tier instance.
- Follow the instructions in fly-tier to deploy your internal, hosted Tier instance
-
Clone this repository
-
Use the fly launch command to detect the Dockerfile in this repo, build it, and then deploy your app. Ideally you should select the same region as your hosted Tier instance. Make sure you use the default port (8080).
fly launch
- If you make any changes to the nginx.conf, you can redeploy with:
fly deploy
- Your new TIER_BASE_URL is now available at
https://<proxy-name>.fly.dev
.