From 3702f5151450ce2a35f3c1b30d0e406cf0f53383 Mon Sep 17 00:00:00 2001 From: Cassowary Rusnov Date: Wed, 20 Sep 2023 11:45:22 -0700 Subject: [PATCH] Update .env.sample to fix autoreplace issues and comment issues. Add note about how to add users to README.md --- .env.sample | 8 +++++--- README.md | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index 99ca90a..7dc69ba 100644 --- a/.env.sample +++ b/.env.sample @@ -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 diff --git a/README.md b/README.md index 82a89c0..5acfce9 100644 --- a/README.md +++ b/README.md @@ -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