You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/proxy/README.md
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -84,8 +84,32 @@ To stop all Docker containers, run:
84
84
docker compose down
85
85
```
86
86
87
-
## Deployment
87
+
## Deploying to fly.io
88
88
89
-
The proxy is deployed on Fly.io.
89
+
1. Create a new app if it doesn't exist
90
90
91
-
A Tigris bucket is used to store the DB tarballs and the TLS certificates.
91
+
```shell
92
+
fly apps create postgres-new-proxy
93
+
```
94
+
95
+
2. Set the appropriate environment variables and secrets for the app "postgres-new-proxy" (see `.env.example`) in fly.io UI.
96
+
97
+
3. Allocate a dedicated IPv4 address for the app, it's required to resolve wildcard DNS queries correctly.
98
+
99
+
```shell
100
+
fly ips allocate-v4
101
+
```
102
+
103
+
4. On Cloudflare, add a new CNAME DNS record pointing to the Fly.io app domain:
104
+
105
+
| Type | Name | Value |
106
+
| --- | --- | --- |
107
+
| CNAME |*.db | postgres-new-proxy.fly.dev |
108
+
109
+
5. Deploy the app
110
+
111
+
Due to a bug in `fly` ignoring `.dockerignore` files when setting up a build context, we need to copy the file to the root of the repo and remove it after the deploy.
0 commit comments