From a9ab3bbb22f813e829cb58f25cc5ede7777dcb29 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Sat, 3 Feb 2024 08:36:52 +0800 Subject: [PATCH] chore: update exp in (#288) --- .github/workflows/deploy.test.yml | 1 + deploy.env | 1 + dev.env | 1 + docker-compose-dev.yml | 1 + docker-compose.yml | 2 ++ 5 files changed, 6 insertions(+) diff --git a/.github/workflows/deploy.test.yml b/.github/workflows/deploy.test.yml index b9d3eb02..9d610b33 100644 --- a/.github/workflows/deploy.test.yml +++ b/.github/workflows/deploy.test.yml @@ -38,6 +38,7 @@ jobs: source environments/test.env export APPFLOWY_GOTRUE_JWT_SECRET=${{ secrets.TEST_GOTRUE_JWT_SECRET }} + export APPFLOWY_GOTRUE_JWT_EXP=${{ secrets.TEST_GOTRUE_JWT_EXP }} export APPFLOWY_S3_ACCESS_KEY=${{ secrets.TEST_APPFLOWY_S3_ACCESS_KEY }} export APPFLOWY_S3_SECRET_KEY=${{ secrets.TEST_APPFLOWY_S3_SECRET_KEY }} export APPFLOWY_GOTRUE_ADMIN_PASSWORD=${{ secrets.TEST_APPFLOWY_GOTRUE_ADMIN_PASSWORD }} diff --git a/deploy.env b/deploy.env index 1af3333b..44b86ab8 100644 --- a/deploy.env +++ b/deploy.env @@ -9,6 +9,7 @@ APPFLOWY_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres # authentication key, change this and keep the key safe and secret # self defined key, you can use any string GOTRUE_JWT_SECRET=hello456 +GOTRUE_JWT_EXP=7200 # User sign up will automatically be confirmed if this is set to true. # If you have OAuth2 set up or smtp configured, you can set this to false diff --git a/dev.env b/dev.env index 5e985579..65a4d8ae 100644 --- a/dev.env +++ b/dev.env @@ -8,6 +8,7 @@ APPFLOWY_DATABASE_URL=postgres://postgres:password@localhost:5432/postgres # authentication key, change this and keep the key safe and secret # self defined key, you can use any string GOTRUE_JWT_SECRET=hello456 +GOTRUE_JWT_EXP=7200 # user sign up will automatically be confirmed if this is set to true # if you have OAuth2 set up or smtp configured, you can set this to false diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 0ecdff5d..fdca6a22 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -44,6 +44,7 @@ services: - GOTRUE_SITE_URL=appflowy-flutter:// # redirected to AppFlowy application - URI_ALLOW_LIST=* # adjust restrict if necessary - GOTRUE_JWT_SECRET=${GOTRUE_JWT_SECRET} # authentication secret + - GOTRUE_JWT_EXP=${GOTRUE_JWT_EXP} - GOTRUE_DB_DRIVER=postgres - API_EXTERNAL_URL=${API_EXTERNAL_URL} - DATABASE_URL=${GOTRUE_DATABASE_URL} diff --git a/docker-compose.yml b/docker-compose.yml index 27a07fcc..f6270ef2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,7 @@ services: - GOTRUE_SITE_URL=appflowy-flutter:// # redirected to AppFlowy application - URI_ALLOW_LIST=* # adjust restrict if necessary - GOTRUE_JWT_SECRET=${GOTRUE_JWT_SECRET} # authentication secret + - GOTRUE_JWT_EXP=${GOTRUE_JWT_EXP} - GOTRUE_DB_DRIVER=postgres - API_EXTERNAL_URL=${API_EXTERNAL_URL} - DATABASE_URL=${GOTRUE_DATABASE_URL} @@ -92,6 +93,7 @@ services: - APPFLOWY_DATABASE_URL=${APPFLOWY_DATABASE_URL} - APPFLOWY_REDIS_URI=redis://redis:6379 - APPFLOWY_GOTRUE_JWT_SECRET=${GOTRUE_JWT_SECRET} + - APPFLOWY_GOTRUE_JWT_EXP=${GOTRUE_JWT_EXP} - APPFLOWY_GOTRUE_BASE_URL=${APPFLOWY_GOTRUE_BASE_URL} - APPFLOWY_GOTRUE_EXT_URL=${API_EXTERNAL_URL} - APPFLOWY_GOTRUE_ADMIN_EMAIL=${GOTRUE_ADMIN_EMAIL}