Skip to content

Commit

Permalink
Added Email variables, Google Sign and Debug variables for Django
Browse files Browse the repository at this point in the history
  • Loading branch information
Gibby committed Feb 22, 2019
1 parent bd131b1 commit a017394
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ services:
DEFAULT_FROM_EMAIL: Trunk Player <trunk-player@changeme.com>
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:
Expand Down
10 changes: 8 additions & 2 deletions src_files/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit a017394

Please sign in to comment.