Disable email in default config

This commit is contained in:
rubenwardy 2020-09-01 15:25:52 +01:00
parent b3fdb991d6
commit 8ec4006cc7
2 changed files with 7 additions and 5 deletions

@ -15,6 +15,7 @@ Docker is the recommended way to develop and deploy ContentDB.
2. Copy `config.example.cfg` to `config.cfg`. 2. Copy `config.example.cfg` to `config.cfg`.
3. (Optional) Set up mail in config.cfg. 3. (Optional) Set up mail in config.cfg.
Make sure to set `USER_ENABLE_EMAIL` to True.
4. (Optional) Set up GitHub integration 4. (Optional) Set up GitHub integration
1. Make a Github OAuth Client at <https://github.com/settings/developers>: 1. Make a Github OAuth Client at <https://github.com/settings/developers>:
@ -29,19 +30,19 @@ Docker is the recommended way to develop and deploy ContentDB.
POSTGRES_DB=contentdb POSTGRES_DB=contentdb
FLASK_DEBUG=1 FLASK_DEBUG=1
5. Start docker images: 6. Start docker images:
docker-compose up --build docker-compose up --build
6. Setup database: 7. Setup database:
./utils/run_migrations.sh ./utils/run_migrations.sh
8. (Recommended, optional) create initial data 8. Create initial data
1. `./utils/bash.sh` 1. `./utils/bash.sh`
2. Either `python setup.py -o` or `python setup.py -t` 2. Either `python setup.py -t` or `python setup.py -o`:
1. `-o` creates just the admin, and static data like tags, and licenses. 1. `-o` creates just the admin, and static data like tags, and licenses.
2. `-t` will do `-o` and also create test pacakges. (Recommended) 2. `-t` will do `-o` and also create test packages. (Recommended)
9. View at <http://localhost:5123>. 9. View at <http://localhost:5123>.
The admin username is `rubenwardy` and the password is `tuckfrump`. The admin username is `rubenwardy` and the password is `tuckfrump`.

@ -19,6 +19,7 @@ USER_ENABLE_USERNAME = True
USER_ENABLE_REGISTER = False USER_ENABLE_REGISTER = False
USER_ENABLE_CHANGE_USERNAME = False USER_ENABLE_CHANGE_USERNAME = False
USER_ENABLE_EMAIL = False
MAIL_USERNAME = "" MAIL_USERNAME = ""
MAIL_PASSWORD = "" MAIL_PASSWORD = ""
USER_EMAIL_SENDER_NAME = "" USER_EMAIL_SENDER_NAME = ""