Skip to content

Commit

Permalink
feat: added registrations_open env var
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Jan 13, 2024
1 parent 9e629b9 commit f76f1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .env.template
Original file line number Diff line number Diff line change
@@ -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
ORIGINS_ALLOWED=kwoc.kossiitkgp.org
REGISTRATIONS_OPEN=false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f76f1a1

Please sign in to comment.