summaryrefslogtreecommitdiff
path: root/build/postgrest/entrypoint.sh
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-23 11:13:27 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-23 11:13:27 -0500
commit5a2ba9c2e7605bb788bc406184547d22c6436867 (patch)
treecbd988d534e8a8593a31d70571222443f80da0b3 /build/postgrest/entrypoint.sh
parentfix about modal (diff)
downloadxssbook2-5a2ba9c2e7605bb788bc406184547d22c6436867.tar.gz
xssbook2-5a2ba9c2e7605bb788bc406184547d22c6436867.tar.bz2
xssbook2-5a2ba9c2e7605bb788bc406184547d22c6436867.zip
v2.1.0, refactor w/ crimson
Diffstat (limited to '')
-rwxr-xr-xbuild/postgrest/entrypoint.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/build/postgrest/entrypoint.sh b/build/postgrest/entrypoint.sh
deleted file mode 100755
index 71b433d..0000000
--- a/build/postgrest/entrypoint.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-config=/etc/postgrest.d/postgrest.conf
-
-PGRST_DB_URI="postgres://authenticator:postgrest@db:5432/$POSTGRES_DB"
-PGRST_ROLE="rest_anon"
-PGRST_SCHEMA="api"
-
-rm -fr "$config"
-touch "$config"
-{
- printf 'db-uri = "%s"\n' "$PGRST_DB_URI";
- printf 'db-anon-role = "%s"\n' "$PGRST_ROLE";
- printf 'db-schemas = "%s"\n' "$PGRST_SCHEMA";
- printf 'jwt-secret = "%s"\n' "$JWT_SECRET";
- printf 'jwt-secret-is-base64 = false\n';
- printf 'server-host = "*"\n';
- printf 'server-port = 3000\n';
-} >> $config
-
-exec /usr/local/bin/postgrest "$config"