add a login and encrypt the .env so people can't get in and still the api key

This commit is contained in:
rainyy21
2026-11-11 17:01:25 -05:00
parent f662e647d7
commit 96e608126b
10 changed files with 422 additions and 72 deletions
+13
View File
@@ -3,3 +3,16 @@ GITHUB_TOKEN=your-real-token
WEB_SECRET_KEY=change-me
# generate with: openssl rand -hex 32
WEBHOOK_SECRET=change-me
# web UI login (empty or placeholder hash = nobody can log in)
WEB_ADMIN_USER=admin
# generate with:
# python3 -c "from werkzeug.security import generate_password_hash as g; import getpass; print(g(getpass.getpass()))"
# keep the single quotes: the hash contains $ and compose would read those as variables
WEB_ADMIN_PASSWORD_HASH='change-me'
# encrypts the repo .env files saved from the web UI (data/local/) at rest.
# back it up somewhere else: lose it and those files can't be read anymore
# generate with:
# python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
ENV_ENCRYPTION_KEY=