-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathsettings.env.template
98 lines (77 loc) · 3.25 KB
/
settings.env.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ====================
# Base deployment information
NAME=testing
ROOT_DIR=/home/ubuntu/govtrack.us-web
# The canonical hostname
HOST=govtrack.example.com
# The hostnames for which an SSL certificate should be generated
SSL_HOSTS=govtrack.example.com,trygovtrack.com
# The following should be a comma-separated list of domains that should be
# redirected to the canonical hostname above.
HTTPS_REDIRECT_HOSTS=govtrack.example.com
# Uncomment the following to enable SSL
#ENABLE_SSL=True
# Uncomment the following to run in DEBUG mode
#DEBUG=True
# ====================
# Data folder backups, and credentials that can read/write to the bucket.
S3_BACKUPS_BUCKET=govtrack_backups
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
# ====================
# Comma-separated list of strings representing the host/domain names that this
# site can serve.
# See https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts
ALLOWED_HOSTS=*
# URL-formatted string representing the database connection configuration.
# See https://github.com/kennethreitz/dj-database-url#url-schema
# For MySQL, you'll want to use best-practice settings:
# mysql://user:password@host/dbname?sql_mode=STRICT_ALL_TABLES&charset=utf8mb4
DATABASE_URL=...
# URL representing the cache connection configuration
# See https://github.com/ghickman/django-cache-url#supported-caches
# In production we use memcached://localhost?key_prefix=govtrack.prod (depends on libmemcached-dev, pylibmc).
CACHE_URL=locmem://opendataiscool
# URL representing the haystack connection configurations.
# See https://github.com/simpleenergy/dj-haystack-url#url-schema
#
# For local development you may want to use the Xapian search engine, e.g.:
# xapian:/home/username/govtrack.us-web/xapian_index_person
#
# For a production deployment you may want to use Solr instead, e.g.:
# solr:http://localhost:8983/solr/person
HAYSTACK_PERSON_CONNECTION=simple
HAYSTACK_BILL_CONNECTION=simple
# Django uses a secret key to provide cryptographic signing. It should be random
# and kept secure. You can generate a key with `./manage.py generate_secret_key`
SECRET_KEY=
RSS_CAMPAIGN_QUERYSTRING="?utm_campaign=govtrack_feed&utm_source=govtrack/feed&utm_medium=rss"
CONGRESS_DATA_PATH=path to congress project data directory
CONGRESS_PROJECT_PATH=path to congress project working directory (not source code)
MISCONDUCT_DATABASE_PATH=path to misconduct.yaml file
PRONUNCIATION_DATABASE_PATH=path to pronunciation repo legislators.yaml file
SCORECARDS_DATABASE_PATH=path to directory containing scorecard yaml files
# External account keys.
GOOGLE_ANALYTICS_KEY=fill this in
RECAPTCHA_PUBLIC_KEY=fill this in
RECAPTCHA_PRIVATE_KEY=fill this in
TWITTER_OAUTH_TOKEN=fill this in
TWITTER_OAUTH_TOKEN_SECRET=fill this in
GOOGLE_APP_ID=fill this in
GOOGLE_APP_SECRET=fill this in
GOOGLE_AUTH_SCOPE="openid email"
PAYPAL_CLIENT_ID=fill this in
PAYPAL_CLIENT_SECRET=fill this in
PAYPAL_CLIENT_MODE="sandbox" or "live"
MAPBOX_ACCESS_TOKEN=...
MAPBOX_MAP_STYLE=govtrack/ciwuoqjiv00aq2qo75yducni3
MAPBOX_MAP_ID=govtrack.cd-115-2016
DISTRICT_BBOXES_FILE=static/js/congressional-districts-bboxes-115-2016.js
# Email
EMAIL_HOST=
EMAIL_PORT=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=true
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend