Skip to content

Commit

Permalink
fix: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisVLRT committed Feb 21, 2024
1 parent eeb2c5e commit 1e5db4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/deployment/admin_mode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Once you start deploying to a cloud, you may end up having to publicly expose your backend and frontend to the internet. In this case you will need to disable the admin mode on the deployed components.

Just deploy with the `ADMIN_MODE` env var as disabled. This could be in your Dockerfile, or any other deployment config.
```shell
ADMIN_MODE=0
```

This will disable the signup endpoint, preventing people stumbling upon the API from creating an account and using your LLM tokens.
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ nav:
- Home: index.md
- The frontend: frontend.md
- The database: database.md
- Deployment:
- Admin Mode: deployment/admin_mode.md

0 comments on commit 1e5db4d

Please sign in to comment.