-
Notifications
You must be signed in to change notification settings - Fork 112
/
.env_SAMPLE
executable file
·183 lines (148 loc) · 7.17 KB
/
.env_SAMPLE
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# ---------------------------------------------------------------------------
# Environment variables are initialized in this file via the Autoenv module.
# The file may be manually initialized with `. ./.env` from the project root.
# ---------------------------------------------------------------------------
############################
# Django Application Server.
############################
export DJANGO_HTTP_PORT=8000
export DJANGO_ADMIN_USERNAME=admin
export DJANGO_ADMIN_PASSWORD=admin
#export DJANGO_STATIC_ROOT=<path_to_static_files>
##################################
# Django Media Storage (optional).
##################################
# export MEDIA_ROOT=<path_to_media_root>
######################################################
# Wagtail-Sharing - for sharing unpublished drafts.
#
# Used in initial_data script to set sharing hostname.
# See https://github.com/cfpb/wagtail-sharing.
#####################################################
export WAGTAIL_SHARING_HOSTNAME=content.localhost
########################################
# Application feature related variables.
########################################
# Location used by refresh_data.sh for retrieving latest database dump.
#export CFGOV_PROD_DB_LOCATION=<some_database_dump_url>
#export ENABLE_DEFAULT_CACHE=1
#export EMAIL_HOST=<email_server_hostname>
#export ADMIN_EMAILS=<comma_delimited_list_of_emails>
#export WAGTAILADMIN_NOTIFICATION_FROM_EMAIL=<wagtail_notification_from_email>
#export LOGIN_FAIL_TIME_PERIOD=<time_between_failed_attempts>
#export LOGIN_FAILS_ALLOWED=<number_of_fails_allowed_before_lockout>
export ALLOW_ADMIN_URL=True
#export ENABLE_AKAMAI_CACHE_PURGE=True
#export AKAMAI_OBJECT_ID=<akamai_object_id>
#export AKAMAI_ACCESS_TOKEN=<akamai_access_token>
#export AKAMAI_CLIENT_SECRET=<akamai_client_secret>
#export AKAMAI_CLIENT_TOKEN=<akamai_client_token>
#export AKAMAI_FAST_PURGE_URL=<akamai_fast_purge_url>
#export AKAMAI_PURGE_ALL_URL=<akamai_purge_all_url>
#export AKAMAI_PURGE_HOSTNAMES=<akamai_purge_hostnames>
# export ENABLE_CLOUDFRONT_CACHE_PURGE=True
# export CLOUDFRONT_DISTRIBUTION_ID_FILES=<cloudfront_distribution_id_files_cf_gov>
# export CLOUDFRONT_PURGE_HOSTNAMES=<cloudfront_purge_hostnames>
#########################################################################
# Postgres Environment Vars.
# See also https://www.postgresql.org/docs/current/libpq-envars.html.
#########################################################################
# export PGHOST=localhost
# export PGPORT=9200
# export PGDATABASE=cfgov
# export PGUSER=cfpb
# export PGPASSWORD=cfpb
#####################
# Front end settings.
#####################
# Set environment for frontend code optimizations.
# Value is development or production.
export NODE_ENV=development
###############################
# Amazon Web Services (AWS) S3.
###############################
#export S3_ENABLED=<boolean_s3_enabled>
#export AWS_ACCESS_KEY_ID=<aws_access_key_id>
#export AWS_SECRET_ACCESS_KEY=<aws_secret_access_key>
#export AWS_STORAGE_BUCKET_NAME=<aws_storage_bucket_name>
##############################################################
# Elasticsearch - for indexing and storing searchable content.
##############################################################
#export ES_HOST=localhost
#export ES_PORT=9200
##########################################################
# Complaint Search Elasticsearch (ES) Indexes Information.
##########################################################
# export COMPLAINT_ES_INDEX=<Complaint_index>
##########################################################
# Standard venv name
##########################################################
export VENV_NAME=consumerfinance.gov
#############################################################
# U.S. Department of Housing and Urban Development (HUD) API.
#############################################################
export HUD_API_ENDPOINT=http://localhost:8000/hud-api-replace/
#####################################################################
# GOVDELIVERY (optional) - for running the subscription forms.
#
# GovDelivery API calls are mocked by default in a local environment;
# they will always return a 200 response.
# If the GOVDELIVERY_BASE_URL line is uncommented below,
# GovDelivery API calls will be made to that URL,
# and the other values below must be uncommented and set accordingly.
#####################################################################
#export GOVDELIVERY_BASE_URL=https://stage-api.govdelivery.com/
#export GOVDELIVERY_ACCOUNT_CODE=<govdelivery_account_code>
#export GOVDELIVERY_USER=<govdelivery_username>
#export GOVDELIVERY_PASSWORD=<govdelivery_password>
######################################################################
# Mapbox (optional) - for loading pages with embedded JavaScript maps.
######################################################################
# export MAPBOX_ACCESS_TOKEN=<access_token>
#######################################################
# USAJOBS (optional) - for checking job posting status.
#######################################################
#export USAJOBS_ARCHIVE_URL=https://data.usajobs.gov/api/archive
#export USAJOBS_HOST=data.usajobs.gov
#export USAJOBS_API_KEY=<usajobs_api_key>
#export USAJOBS_USER=<usajobs_user>
#######################################################################
# Django Debug Toolbar (optional) - for debugging pages in the browser.
#######################################################################
# Enable the Django Debug Toolbar.
# export ENABLE_DEBUG_TOOLBAR=True
###############################################################################
# New Relic (optional) - for monitoring website performance.
#
# Enables New Relic monitoring of the cf.gov Django application running against
# these environment variables. Requires a valid New Relic license key and an
# unique application name under which application performance will be recorded.
#
###############################################################################
#export NEW_RELIC_LICENSE_KEY=<new relic license key>
#export NEW_RELIC_APP_NAME="cf.gov <your username here> python"
############################################################################
# SSO for local testing
#
# If testing our SSO authentication support, these variables are required,
# as is running with the production settings.
#
# See cfgov/cfgov/settings/production.py and the mozilla-django-oidc docs at
# https://mozilla-django-oidc.readthedocs.io for details.
#
# The values below are for using our oidcprovider Docker container for
# development purposes.
############################################################################
# export ENABLE_SSO=1
# export OIDC_RP_CLIENT_ID=4
# export OIDC_RP_CLIENT_SECRET=itsasecret
# export OIDC_RP_SIGN_ALGO=HS256
# export OIDC_OP_AUTHORIZATION_ENDPOINT=http://localhost:8080/openid/authorize
# export OIDC_OP_TOKEN_ENDPOINT=http://localhost:8080/openid/token
# export OIDC_OP_USER_ENDPOINT=http://localhost:8080/openid/userinfo
# export OIDC_OP_JWKS_ENDPOINT=[Not used for test OIDC provider]
# export OIDC_OP_ADMIN_ROLE=[Not supported by test OIDC provider]
###############################
# Deletion archival storage
###############################
# export WAGTAIL_DELETION_ARCHIVE_PATH=/path/to/write/deleted/content/json/files