Skip to content

Commit

Permalink
fix: authentication default setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikun213 committed Feb 7, 2024
1 parent 5802c2d commit a470a63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/docusaurus/docs/setup/setup_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Before you begin, make sure you have the following installed on your machine:
If needed, change the following variable (not required for a succesfull demo installation):
- `NEXT_PUBLIC_USE_AUTH`: Set to `true` if you would like to add an identity layer using Next Auth.
- `NEXTAUTH_SECRET`: Generate a secret key and replace `# TODO: Generate a secret and add it here` with the secret key.
- `NEXTAUTH_URL` and `NEXTAUTH_URL_INTERNAL`: Set to `http://localhost:3000`
- `GITHUB_ID` and `GITHUB_SECRET`: If you want to enable GitHub authentication, replace the corresponding values with your GitHub app credentials.
- `DB_USER`, `DB_PASSWORD`, `DB_HOST`,`DB_USER`,`DB_PORT` and `DB_NAME`: If you want to customize the database connection settings, update these values accordingly.

Expand Down
4 changes: 2 additions & 2 deletions frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ NEXT_PUBLIC_ENABLE_MESSAGE_FEEDBACK=false # Enables Langsmith feedback prompting
# https://next-auth.js.org/configuration/options#secret
NEXT_PUBLIC_USE_AUTH=false # Set to true to enable authentication
NEXTAUTH_SECRET= # TODO: Generate a secret and add it here (see above)
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_URL_INTERNAL="http://localhost:3000"
NEXTAUTH_URL="http://localhost" # Change to http://localhost:3000 if run locally
NEXTAUTH_URL_INTERNAL="http://nextjs_server:3000" # Change to http://localhost:3000 if run locally
GITHUB_ENTERPRISE_URL="https://github.your.enterprise.com/"

# Next Auth Provider (Github as standard, but can be changed to others e.g. Google)
Expand Down

0 comments on commit a470a63

Please sign in to comment.