Add root-spec to official Dockerfile

* Delete unused config file
This commit is contained in:
steve-chavez
2019-06-26 18:14:36 -05:00
committed by Steve Chávez
parent 367ad8ea43
commit da7aa1d72f
3 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ ENV PGRST_DB_URI= \
PGRST_JWT_AUD= \
PGRST_MAX_ROWS= \
PGRST_PRE_REQUEST= \
PGRST_ROLE_CLAIM_KEY=".role"
PGRST_ROLE_CLAIM_KEY=".role" \
PGRST_ROOT_SPEC=
RUN groupadd -g 1000 postgrest && \
useradd -r -u 1000 -g postgrest postgrest && \
-3
View File
@@ -1,3 +0,0 @@
db-uri = "postgres://app_user:password@postgres:5432/app_db"
db-schema = "public"
db-anon-role = "app_user"
+1
View File
@@ -15,3 +15,4 @@ role-claim-key = "$(PGRST_ROLE_CLAIM_KEY)"
max-rows = "$(PGRST_MAX_ROWS)"
pre-request = "$(PGRST_PRE_REQUEST)"
root-spec = "$(PGRST_ROOT_SPEC)"