From 312e295a47c181464853d1da671478851e9200bf Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Wed, 24 Jul 2019 14:04:37 -0500 Subject: [PATCH] Add raw-media-types config option to Docker --- docker/Dockerfile | 3 ++- docker/postgrest.conf | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index a132b6a8d..0b80b6054 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -38,7 +38,8 @@ ENV PGRST_DB_URI= \ PGRST_MAX_ROWS= \ PGRST_PRE_REQUEST= \ PGRST_ROLE_CLAIM_KEY=".role" \ - PGRST_ROOT_SPEC= + PGRST_ROOT_SPEC= \ + PGRST_RAW_MEDIA_TYPES= RUN groupadd -g 1000 postgrest && \ useradd -r -u 1000 -g postgrest postgrest && \ diff --git a/docker/postgrest.conf b/docker/postgrest.conf index 3e12442a1..a06f61ccb 100644 --- a/docker/postgrest.conf +++ b/docker/postgrest.conf @@ -16,3 +16,5 @@ role-claim-key = "$(PGRST_ROLE_CLAIM_KEY)" max-rows = "$(PGRST_MAX_ROWS)" pre-request = "$(PGRST_PRE_REQUEST)" root-spec = "$(PGRST_ROOT_SPEC)" + +raw-media-types = "$(PGRST_RAW_MEDIA_TYPES)"