-
Notifications
You must be signed in to change notification settings - Fork 13
/
local.env
114 lines (86 loc) · 2.79 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
# 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
############################
SEARCH_ENDPOINT=opensearch-node
SEARCH_PORT=9200
SEARCH_USE_SSL=FALSE
SEARCH_VERIFY_CERTS=FALSE
############################
# 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
# This env var is used to set local AWS credentials
IS_LOCAL_AWS=1
############################
# 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