This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
forked from HHS/simpler-grants-gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.env
129 lines (100 loc) · 3.31 KB
/
local.env
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
# Local environment variables
# Used by docker compose and it can be loaded
# by calling load_local_env_vars() from api/src/util/local.py
ENVIRONMENT=local
PORT=8080
PERSIST_AUTHORIZATION_OPENAPI=TRUE
# Python path needs to be specified
# for pytest to find the implementation code
PYTHONPATH=/api/
# PY_RUN_APPROACH=python OR docker
# Set this in your environment
# to modify how the Makefile runs
# commands that can run in or out
# of the Docker container - defaults to outside
FLASK_APP=src.app:create_app
############################
# Logging
############################
# Can be "human-readable" OR "json"
LOG_FORMAT=human-readable
# Set log level. Valid values are DEBUG, INFO, WARNING, CRITICAL
# LOG_LEVEL=INFO
# Enable/disable audit logging. Valid values are TRUE, FALSE
LOG_ENABLE_AUDIT=FALSE
# Change the message length for the human readable formatter
# LOG_HUMAN_READABLE_FORMATTER__MESSAGE_WIDTH=50
############################
# Authentication
############################
# The auth token used by the local endpoints
API_AUTH_TOKEN=LOCAL_AUTH_12345678,LOCAL_AUTH_87654321,LOCAL_1234
############################
# DB Environment Variables
############################
# These are used by the Postgres image to create the admin user
POSTGRES_USER=app
POSTGRES_PASSWORD=secret123
# Set DB_HOST to localhost if accessing a non-dockerized database
DB_HOST=grants-db
DB_NAME=app
DB_USER=app
DB_PASSWORD=secret123
DB_SSL_MODE=allow
# When an error occurs with a SQL query,
# whether or not to hide the parameters which
# could contain sensitive information.
HIDE_SQL_PARAMETER_LOGS=TRUE
############################
# Opensearch Environment Variables
############################
OPENSEARCH_HOST=opensearch-node
OPENSEARCH_PORT=9200
OPENSEARCH_USE_SSL=FALSE
OPENSEARCH_VERIFY_CERTS=FALSE
############################
# AWS Defaults
############################
# For these secret access keys, don't
# add them to this file to avoid mistakenly
# committing them. Set these in your shell
# by doing `export AWS_ACCESS_KEY_ID=whatever`
AWS_ACCESS_KEY_ID=DO_NOT_SET_HERE
AWS_SECRET_ACCESS_KEY=DO_NOT_SET_HERE
# These next two are commented out as we
# don't have configuration for individuals
# to use these at the moment and boto3
# tries to use them first before the keys above.
#AWS_SECURITY_TOKEN=DO_NOT_SET_HERE
#AWS_SESSION_TOKEN=DO_NOT_SET_HERE
AWS_DEFAULT_REGION=us-east-1
############################
# Localstack
############################
# If you want to connect to localstack outside of docker
# use localhost:4566 instead
S3_ENDPOINT_URL=http://localstack:4566
############################
# S3
############################
S3_OPPORTUNITY_BUCKET=local-opportunities
############################
# Feature Flags
############################
ENABLE_OPPORTUNITY_LOG_MSG=false
############################
# Endpoint Configuration
############################
# Nothing needs to be configured at the moment
############################
# Script Configuration
############################
# For the script to setup the foreign data tables
# this env var overrides it so the script generates normal
# tables that don't need to connect to an Oracle database
IS_LOCAL_FOREIGN_TABLE=true
############################
# Task Configuration
############################
# File path for the export_opportunity_data task
EXPORT_OPP_DATA_FILE_PATH=/tmp