Use plain admin password and remove operator email alerts; admin dashboard is the queue
This commit is contained in:
parent
7acf7bcca9
commit
fa01ac0f32
4 changed files with 17 additions and 41 deletions
12
README.md
12
README.md
|
|
@ -19,17 +19,11 @@ cd /home/jess/workspace/theme-song-booth
|
|||
python3 -m venv .venv
|
||||
.venv/bin/pip install -r requirements.txt
|
||||
cp .env.example .env
|
||||
# Edit .env and set APP_SECRET_KEY, ADMIN_PASSWORD_HASH, SMTP_PASS, PUBLIC_BASE_URL
|
||||
# Edit .env and set APP_SECRET_KEY, ADMIN_PASSWORD, SMTP_PASS, PUBLIC_BASE_URL
|
||||
.venv/bin/python init_db.py
|
||||
.venv/bin/python -m flask --app app run --host=0.0.0.0
|
||||
```
|
||||
|
||||
Generate an admin password hash with:
|
||||
|
||||
```bash
|
||||
.venv/bin/python -c "from werkzeug.security import generate_password_hash; print(generate_password_hash('yourpassword'))"
|
||||
```
|
||||
|
||||
## Deployment with Portainer
|
||||
|
||||
The repo includes a `docker-compose.yml` that builds directly from GitLab, so Portainer can pull and deploy it as a stack.
|
||||
|
|
@ -42,10 +36,10 @@ The repo includes a `docker-compose.yml` that builds directly from GitLab, so Po
|
|||
- Compose path: `docker-compose.yml`
|
||||
4. Add environment variables in Portainer (or upload a `.env` file):
|
||||
- `APP_SECRET_KEY`
|
||||
- `ADMIN_PASSWORD_HASH`
|
||||
- `ADMIN_PASSWORD`
|
||||
- `SMTP_PASS`
|
||||
- `PUBLIC_BASE_URL` (your HTTPS domain)
|
||||
- `ADMIN_ALERT_EMAIL`
|
||||
- `BOOTH_NAME` (optional)
|
||||
5. Deploy the stack.
|
||||
6. Open a console into the `booth` container and run once:
|
||||
```bash
|
||||
|
|
|
|||
Reference in a new issue