From ddae564f54f5c56b9bd03f6a22fe60dd86d4dfd4 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 2 May 2022 17:29:24 +0200 Subject: [PATCH] auth-backend: tweak oauth2-proxy example Signed-off-by: Patrik Oldsberg --- .../examples/docker-compose.oauth2-proxy.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/plugins/auth-backend/examples/docker-compose.oauth2-proxy.yaml b/plugins/auth-backend/examples/docker-compose.oauth2-proxy.yaml index 6915983ca6..f00e2e0987 100755 --- a/plugins/auth-backend/examples/docker-compose.oauth2-proxy.yaml +++ b/plugins/auth-backend/examples/docker-compose.oauth2-proxy.yaml @@ -4,19 +4,20 @@ # You'll need to provide your own GitHub client ID and secret through # GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET. # -# The following env vars can be used to configure `yarn dev` to work with the proxy: -# -# APP_CONFIG_app_baseUrl=http://localhost APP_CONFIG_app_listen_port=3000 \ -# APP_CONFIG_backend_baseUrl=http://localhost APP_CONFIG_backend_listen_port=7007 yarn dev -# -# The only manual modification you need to make to the app is to switch the +# The only modifications you need to make to run this example is to switch the # SignInPage to the following: # # # -# Once done, you can run the following and then navigate to http://localhost: +# You also need to switch out the baseUrl and listen port of both the frontend and +# backend, but we can do that through env vars when running `yarn dev`: # -# ./docker-compose.oauth2-proxy.yaml up +# APP_CONFIG_app_baseUrl=http://localhost APP_CONFIG_app_listen_port=3000 \ +# APP_CONFIG_backend_baseUrl=http://localhost APP_CONFIG_backend_listen_port=7007 yarn dev +# +# Once done, you can run the following from the root and then navigate to http://localhost +# +# ./plugins/auth-backend/examples/docker-compose.oauth2-proxy.yaml up version: '3' services: