From f76f1a1294f8fa7543942f66a03efa3223ad52ac Mon Sep 17 00:00:00 2001 From: Harsh Khandeparkar Date: Sat, 13 Jan 2024 15:37:56 +0530 Subject: [PATCH] feat: added registrations_open env var --- .env.template | 15 ++++++++------- README.md | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.env.template b/.env.template index 1abaecf..606d348 100644 --- a/.env.template +++ b/.env.template @@ -1,11 +1,12 @@ BACKEND_PORT=8080 -DATABASE_HOST= -DATABASE_PORT= -DATABASE_NAME= -DATABASE_USERNAME= -DATABASE_PASSWORD= -JWT_SECRET_KEY= +DATABASE_HOST=localhost +DATABASE_PORT=5432 +DATABASE_NAME=postgres +DATABASE_USERNAME=postgres +DATABASE_PASSWORD=somerandomstringfordevelopment +JWT_SECRET_KEY=anotherrandomstringfordevelopment JWT_VALIDITY_TIME=720 GH_OAUTH_CLIENT_ID= GITHUB_OAUTH_CLIENT_SECRET= -ORIGINS_ALLOWED=kwoc.kossiitkgp.org \ No newline at end of file +ORIGINS_ALLOWED=kwoc.kossiitkgp.org +REGISTRATIONS_OPEN=false \ No newline at end of file diff --git a/README.md b/README.md index 1965c89..2b3ec05 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,7 @@ Environment variables can be set using a `.env` (See [Command-Line Arguments](#c - `GITHUB_OAUTH_CLIENT_SECRET`: The client secret used for Github OAuth. (See [Github OAuth](#github-oauth)) - `JWT_SECRET_KEY`: The secret key used to create a JWT token. (It can be a randomly generated string) - `JWT_VALIDITY_TIME`: The amount of time (in hours) for which the generated JWT tokens should be valid. +- `REGISTRATIONS_OPEN`: Set to `true` to enable the registration endpoints. ### Github OAuth