diff --git a/README.md b/README.md index 33b2ce0..6460454 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ I have attempted to keep the image size down by: * Starts add_transmission_worker x2 * Starts runworker x2 * Serving local audio files + * Sending emails like at user signup * Not working: * No Social Logins yet - * Email doesn't work yet, so when a user signs up they get an error but if they go back to login they can login. * Serving audio files with s3 * Might be added * Auto importing talk groups from the csv file that is used with trunk-recorder @@ -87,6 +87,13 @@ I have attempted to keep the image size down by: * SITE_EMAIL: - Site email address * DEFAULT_FROM_EMAIL: - Default from address * TZ: - Timezone + * ALLOW_GOOGLE_SIGNIN: - Should google signups/signins be allowed **NOTE:** Currently does not work + * DEBUG: - Should Django be ran in debug mode, do **NOT** set to True in a public site. + * EMAIL_HOST: - Email host to send email through + * EMAIL_PORT: - Email host port + * EMAIL_HOST_USER: - Email host user **NOTE:** Have not tested anonymous or no user/pass + * EMAIL_HOST_PASSWORD: - Email host password + * EMAIL_USE_TLS: - Should TLS or SSL be used when connecting to EMAIL_HOST # Thanks to diff --git a/docker-compose.template.yml b/docker-compose.template.yml index 5a8fe38..66f597c 100644 --- a/docker-compose.template.yml +++ b/docker-compose.template.yml @@ -41,6 +41,13 @@ services: DEFAULT_FROM_EMAIL: Trunk Player AUDIO_URL_BASE: /audio_files/ TZ: America/New_York + ALLOW_GOOGLE_SIGNIN: "False" + DEBUG: "False" + EMAIL_HOST: email-smtp.us-east-1.amazonaws.com + EMAIL_PORT: 587 + EMAIL_HOST_USER: changme + EMAIL_HOST_PASSWORD: changeme + EMAIL_USE_TLS: "True" depends_on: - db ports: diff --git a/src_files/settings_local.py b/src_files/settings_local.py index 250747c..0a5d99c 100644 --- a/src_files/settings_local.py +++ b/src_files/settings_local.py @@ -5,13 +5,19 @@ TIME_ZONE = '${TZ}' -DEBUG = False +DEBUG = ${DEBUG} ALLOWED_HOSTS = ${ALLOWED_HOSTS} BASE_DIR = '/home/radio/trunk-player' -ALLOW_GOOGLE_SIGNIN = False +ALLOW_GOOGLE_SIGNIN = ${ALLOW_GOOGLE_SIGNIN} + +EMAIL_HOST = '${EMAIL_HOST}' +EMAIL_PORT = '${EMAIL_PORT}' +EMAIL_HOST_USER = '${EMAIL_HOST_USER}' +EMAIL_HOST_PASSWORD = '${EMAIL_HOST_PASSWORD}' +EMAIL_USE_TLS = '${EMAIL_USE_TLS}' # Make this unique, and don't share it with anybody. # You can use http://www.miniwebtool.com/django-secret-key-generator/