zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 57b3cb55ceb13e18e66aec7fda5dd548d26af377
parent 7b939d8cce4434ac276bd9842194572bb4f58f53
Author: Alberto Lerda <albertolerda97@gmail.com>
Date:   Wed,  5 Oct 2022 08:48:43 +0200

Devop: add GQL_AUTH_CALLS env variable

Diffstat:
Mconf/.env.templ | 1+
Mconf/runtime.exs | 4+++-
Mdevop/.docker-compose.templ | 1+
3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/conf/.env.templ b/conf/.env.templ @@ -35,5 +35,6 @@ export ROOM_SALT=@ROOM_SALT export ADMIN_KEY=@ADMIN_KEY ## gql +export GQL_AUTH_CALLS=true export GQL_DEF_PAGE_SIZE=50 export GQL_MAX_PAGE_SIZE=100 diff --git a/conf/runtime.exs b/conf/runtime.exs @@ -91,6 +91,8 @@ if def_page_size < 1, max_page_size = get_env_int.("GQL_MAX_PAGE_SIZE", 100) if max_page_size < def_page_size, do: raise "GQL_MAX_PAGE_SIZE can't be less than GQL_DEF_PAGE_SIZE" +auth? = get_env("GQL_AUTH_CALLS", "true") != "false" config :zenflows, Zenflows.GQL, def_page_size: def_page_size, - max_page_size: max_page_size + max_page_size: max_page_size, + authenticate_calls?: auth? diff --git a/devop/.docker-compose.templ b/devop/.docker-compose.templ @@ -40,6 +40,7 @@ services: ROOM_PORT: &room_port 3000 ROOM_SALT: @ROOM_SALT + GQL_AUTH_CALLS: true GQL_DEF_PAGE_SIZE: 50 GQL_MAX_PAGE_SIZE: 100 depends_on: