Update .env.sample to fix autoreplace issues and comment issues. Add note about how to add users to README.md

This commit is contained in:
Cassowary 2023-09-20 11:45:22 -07:00
parent 2218afb811
commit 3702f51514
2 changed files with 16 additions and 3 deletions

View File

@ -1,14 +1,16 @@
TYPE=mailman3
DOMAIN=lists.example.com
DOMAIN=mailman3.example.com
LETS_ENCRYPT_ENV=production
SERVE_FROM_DOMAIN=${DOMAIN}
MAILMAN_ADMIN_EMAIL=admin@example.com
SMTP_HOST=mail_example_com_smtp # mailu smtp
SMTP_NETWORK=mail_example_com_default # mailu network
# mailu smtp
SMTP_HOST=mail_example_com_smtp
# mailu network
SMTP_NETWORK=mail_example_com_default
SMTP_PORT=25
SECRET_DB_PASSWORD_VERSION=v1

View File

@ -40,6 +40,17 @@ This configuration assumes the following:
5. `abra app deploy YOURAPPDOMAIN`
6. Open the configured domain in your browser to finish set-up
## Creating users / superusers and running manage.py in general for posterous.
1. Go to the `web` container `abra app run lists.example.com web bash`
2. Set up the enivronment for the `manage.py` to work:
a. `export SECRET_KEY=$(cat /run/secrets/django_secret_key)`
b. `export DATABASE_PASSWORD=$(cat /run/secrets/db_password)`
c. `export DATABASE_URL="postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}/${DATABASE_NAME}"`
3. Then `manage.py` should work. For example, create a superuser with `python3 manage.py createsuperuser`.
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
[`coop-cloud/mailu`]: https://git.autonomic.zone/coop-cloud/mailu