Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: database deployment #71

Draft
wants to merge 113 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
8b82b47
feat: upload db poc
gregnr Jul 30, 2024
7fde55c
docs: dns container tools
gregnr Jul 30, 2024
716a586
feat: db publish from browser
gregnr Jul 30, 2024
d8d0149
add .env to .gitignore
jgoux Aug 2, 2024
755ef22
Merge branch 'main' into feat/upload-db
jgoux Aug 2, 2024
11273d1
use the archives directly
jgoux Aug 2, 2024
b283236
Merge branch 'main' into feat/upload-db
jgoux Aug 2, 2024
9529525
clarify AWS_SESSION_TOKEN
jgoux Aug 2, 2024
dfa326e
wip
jgoux Aug 2, 2024
65f5ba2
fix config
jgoux Aug 5, 2024
385da6c
Merge branch 'main' into chore/fly-deployment
jgoux Aug 5, 2024
fb009b3
address comment
jgoux Aug 5, 2024
d4902b8
Merge branch 'main' into feat/upload-db
jgoux Aug 5, 2024
720f055
using async
jgoux Aug 5, 2024
74a9aa1
Merge remote-tracking branch 'origin/feat/upload-db' into chore/fly-d…
jgoux Aug 5, 2024
73620aa
fix wildcard
jgoux Aug 5, 2024
b17699b
gzip the tarball
jgoux Aug 5, 2024
442b984
Merge pull request #11 from supabase-community/chore/fly-deployment
jgoux Aug 5, 2024
ee6a4a4
custom s3fs to support supabase storage
fenos Aug 8, 2024
16f44ba
Merge branch 'main' into feat/upload-db
jgoux Aug 8, 2024
76db8f0
wip
jgoux Aug 8, 2024
b64d4df
store credentials in the database and fetch them in db-service
jgoux Aug 8, 2024
db62b5f
read-only works
jgoux Aug 8, 2024
dbae56c
set pg-gateway
jgoux Aug 9, 2024
3e7e733
Merge branch 'main' into feat/upload-db
jgoux Aug 9, 2024
e1a8f95
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 9, 2024
966af04
group components
jgoux Aug 9, 2024
53609bc
deps
jgoux Aug 9, 2024
5ec5878
bump deps
jgoux Aug 9, 2024
5cc4359
psql connection string is on the frontend
jgoux Aug 9, 2024
902b0cf
make copy somewhat working
jgoux Aug 9, 2024
5daac37
wip
jgoux Aug 12, 2024
9012b67
Merge branch 'main' into feat/upload-db
jgoux Aug 12, 2024
f1a9a28
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 12, 2024
f0190f3
fix a few bugs
jgoux Aug 12, 2024
8c24644
split sidebar into components
jgoux Aug 12, 2024
b44b3ac
Merge branch 'main' into feat/upload-db
jgoux Aug 13, 2024
cc35656
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 13, 2024
7eff3f1
handle conflicts
jgoux Aug 13, 2024
f646608
fix conflicts
jgoux Aug 13, 2024
50c33c7
dialog doesn't need to be controlled
jgoux Aug 13, 2024
24eb981
rename database -> local database
jgoux Aug 13, 2024
fc9ee58
database -> local database
jgoux Aug 13, 2024
5485d99
fix copy button
jgoux Aug 13, 2024
14455e4
ui tweaks
jgoux Aug 13, 2024
c6f57d5
more tweaks
jgoux Aug 13, 2024
72d6cbc
deployment is working
jgoux Aug 13, 2024
916dd07
deployed database fields
jgoux Aug 13, 2024
2900f8e
encode password
jgoux Aug 13, 2024
7e09415
deployed fields
jgoux Aug 13, 2024
2f472ed
remove log
jgoux Aug 13, 2024
f766a3b
reset password route
jgoux Aug 13, 2024
d97aba9
reset password
jgoux Aug 13, 2024
b560d9c
fix: compatibility with Storage
fenos Aug 13, 2024
f3451e9
database deletion
jgoux Aug 13, 2024
1b4887a
delete confirmation dialog
jgoux Aug 14, 2024
2bac2bd
redeploy confirmation
jgoux Aug 14, 2024
b560860
validate dump size client side
jgoux Aug 14, 2024
cbfa62e
validate dump size server-side
jgoux Aug 14, 2024
00f5e94
Merge branch 'main' into feat/upload-db
jgoux Aug 14, 2024
92735e5
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 14, 2024
0bc7ee4
isolate database type and harmonize packages
jgoux Aug 14, 2024
64c33ad
add type check to proxy
jgoux Aug 14, 2024
eff29dd
remove server version so it's dynamically generated
jgoux Aug 14, 2024
dbd3591
don't print internal error
jgoux Aug 14, 2024
462f44e
hide port in the database url as it's the default
jgoux Aug 14, 2024
5b925b0
rely on onTlsUpgrade only for TLS validation
jgoux Aug 14, 2024
01080f6
the build is alive
jgoux Aug 14, 2024
161c98f
put supabase config back in the root
jgoux Aug 14, 2024
d8683b4
rename
jgoux Aug 14, 2024
bed20a6
dynamic server version
jgoux Aug 14, 2024
7332000
add PGlite version
jgoux Aug 14, 2024
693bd73
Merge pull request #31 from supabase-community/feat/deploy-db-to-supa…
jgoux Aug 14, 2024
918fe7e
Merge branch 'main' into next
jgoux Aug 14, 2024
17e7e9d
read PGlite version from package-lock.json
jgoux Aug 15, 2024
7e2448d
remove unused import
jgoux Aug 15, 2024
1f1782f
Merge branch 'feat/upload-db' of github.com:supabase-community/postgr…
fenos Aug 13, 2024
5b6b361
Merge branch 'next' into s3/supabase-storage-support
jgoux Aug 15, 2024
245d349
little fixes
jgoux Aug 15, 2024
6c8b43e
make proxy depends on tls-init
jgoux Aug 15, 2024
adfb50d
rename bucket
jgoux Aug 15, 2024
a8dc141
use S3 compat layer
jgoux Aug 15, 2024
c10d359
reorganize env
jgoux Aug 15, 2024
acd697f
env again
jgoux Aug 15, 2024
f18325e
Merge pull request #30 from supabase-community/s3/supabase-storage-su…
jgoux Aug 15, 2024
5dfb5e9
feat: cache eviction strategy
jgoux Aug 15, 2024
36a773c
more clarity
jgoux Aug 15, 2024
5b03c29
validate uncompressed dump size on both client and server
jgoux Aug 19, 2024
016d0db
Merge branch 'main' into next
jgoux Aug 19, 2024
f341dbf
add KV env variables
jgoux Aug 19, 2024
e235e88
put dummy values
jgoux Aug 19, 2024
3d1a7d1
prepare for fly deployment
jgoux Aug 19, 2024
a7ce3e5
edit README
jgoux Aug 19, 2024
08a06ce
fly deploy
jgoux Aug 19, 2024
3a449f7
deploy instructions
jgoux Aug 19, 2024
6b25b59
clone from supabase
jgoux Aug 19, 2024
a6028f8
Merge branch 'next' into chore/cache-eviction-strategy
jgoux Aug 19, 2024
4831dea
add comment
jgoux Aug 19, 2024
0250f74
Merge pull request #76 from supabase-community/chore/cache-eviction-s…
jgoux Aug 19, 2024
718f788
Merge branch 'main' into next
jgoux Aug 19, 2024
bd15c6b
add optional env keys
jgoux Aug 19, 2024
a4a6c22
remove DATA_MOUNT
jgoux Aug 19, 2024
47b786e
dummy values
jgoux Aug 19, 2024
3185916
it works
jgoux Aug 20, 2024
08d79d8
wip
jgoux Aug 20, 2024
39df5ac
remove certbot
jgoux Aug 20, 2024
ac92ffc
use Deno workspaces and does not expose vault
jgoux Aug 20, 2024
56d2ffb
use json
jgoux Aug 20, 2024
394ad74
tweak deno settings
jgoux Aug 20, 2024
52c093b
use the function calls
jgoux Aug 20, 2024
85f8318
remove commented code
jgoux Aug 20, 2024
6420708
comment acmeDirectoryUrl
jgoux Aug 20, 2024
ae6e397
Merge pull request #86 from supabase-community/feat/edge-function-for…
jgoux Aug 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUPABASE_AUTH_GITHUB_CLIENT_ID=github-client-id
SUPABASE_AUTH_GITHUB_SECRET=github-secret
SUPABASE_AUTH_GITHUB_CLIENT_ID="<github-client-id>"
SUPABASE_AUTH_GITHUB_REDIRECT_URI=http://localhost:54321/auth/v1/callback
SUPABASE_AUTH_GITHUB_SECRET="<github-secret>"
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -15,4 +15,4 @@
}
}
]
}
}
17 changes: 16 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"deno.enablePaths": ["supabase/functions"],
"deno.lint": true,
"deno.unstable": true
"deno.unstable": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -22,8 +22,8 @@ How is this possible? [PGlite](https://pglite.dev/), a WASM version of Postgres

This is a monorepo split into the following projects:

- [Frontend (Next.js)](./apps/postgres-new/): This contains the primary web app built with Next.js
- [Backend (pg-gateway)](./apps/db-service/): This serves S3-backed PGlite databases over the PG wire protocol using [pg-gateway](https://github.com/supabase-community/pg-gateway)
- [Frontend (Next.js)](./apps/web/): This contains the primary web app built with Next.js
- [Backend (pg-gateway)](./apps/proxy/): This serves S3-backed PGlite databases over the PG wire protocol using [pg-gateway](https://github.com/supabase-community/pg-gateway)

## Video

5 changes: 0 additions & 5 deletions apps/db-service/.dockerignore

This file was deleted.

63 changes: 0 additions & 63 deletions apps/db-service/docker-compose.yml

This file was deleted.

20 changes: 0 additions & 20 deletions apps/db-service/package.json

This file was deleted.

109 changes: 0 additions & 109 deletions apps/db-service/src/index.ts

This file was deleted.

Loading
Oops, something went wrong.