-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
135 lines (113 loc) · 4.54 KB
/
.envrc
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
#! /usr/bin/env bash
#########################
# Project Configuration #
#########################
##########################################
# DO NOT MAKE LOCAL CHANGES TO THIS FILE #
# #
# Vars in this file can be overridden by #
# exporting them in .envrc.local #
##########################################
# Helpers for .envrc
APP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Use "ALT_JOB_CODES" so that the non-prod job codes are used locally instead of the production ones
export ALT_JOB_CODES=true
# Set environment to local to avoid deployed environment specifics (like auth)
export APP_ENV=local
export CLIENT_PROTOCOL=http
export CLIENT_DOMAIN=localhost
export CLIENT_PORT=3000
export CLIENT_HOSTNAME=$CLIENT_DOMAIN:$CLIENT_PORT
export CLIENT_ADDRESS=$CLIENT_PROTOCOL://$CLIENT_HOSTNAME
export API_PORT=8080
export VITE_API_ADDRESS=$CLIENT_PROTOCOL://$CLIENT_DOMAIN:$API_PORT/api/v1
export VITE_GRAPHQL_ADDRESS=$CLIENT_PROTOCOL://$CLIENT_DOMAIN:$API_PORT/api/graph/query
export VITE_APP_ENV=$APP_ENV
export LOCAL_AUTH_ENABLED=true
export VITE_LOCAL_AUTH_ENABLED=true
# Email variables
export EMAIL_TEMPLATE_DIR=$APP_DIR/pkg/email/templates
export [email protected]
export [email protected]
export [email protected]
export [email protected]
export OIT_FEEDBACK_CHANNEL_SLACK_LINK="https://oddball.slack.com/archives/C059N01AYGM"
# SES_RECIPIENT_ALLOWLIST_REGEX is only used in SES, so it's purposefully empty here (since we use SMTP locally)
# When used, it MUST be a valid regex, otherwise the server will panic when trying to parse it
export SES_RECIPIENT_ALLOWLIST_REGEX=
# AWS variables
export AWS_REGION=us-west-2
export AWS_SES_SOURCE="\"EASi Local\" <[email protected]>"
export AWS_SES_SOURCE_ARN=ses-arn
export AWS_S3_FILE_UPLOAD_BUCKET=easi-app-file-uploads
# OKTA variables
export OKTA_CLIENT_ID=0oa2e913coDQeG19S297
export OKTA_CLIENT_ID_DEV=0oa2e913coDQeG19S297
export VITE_OKTA_CLIENT_ID=$OKTA_CLIENT_ID
export OKTA_DOMAIN=https://test.idp.idm.cms.gov
export VITE_OKTA_DOMAIN=$OKTA_DOMAIN
export OKTA_SERVER_ID=aus2e96etlbFPnBHt297
export OKTA_SERVER_ID_DEV=aus2e96etlbFPnBHt297
export VITE_OKTA_SERVER_ID=$OKTA_SERVER_ID
export OKTA_ISSUER=$OKTA_DOMAIN/oauth2/$OKTA_SERVER_ID
export VITE_OKTA_ISSUER=$OKTA_ISSUER
export OKTA_REDIRECT_URI=http://localhost:3000/implicit/callback
export VITE_OKTA_REDIRECT_URI=$OKTA_REDIRECT_URI
export OKTA_API_URL=https://test.idp.idm.cms.gov
# Needed for Okta login if not using local. Look in 1Password.
export OKTA_API_TOKEN=
# OKTA test account
# Needed to run Cypress tests. Look in 1Password.
export OKTA_TEST_USERNAME=
export OKTA_TEST_PASSWORD=
export OKTA_TEST_SECRET=
# Use OKTA when doing local dev
export USE_OKTA_LOCAL=false
# Launch Darkly configuration
export FLAG_SOURCE=LOCAL # LAUNCH_DARKLY, LOCAL, or FILE
export LD_SDK_KEY="check 1Password to find this value"
export VITE_LD_CLIENT_ID=63231d448bd05a111f06195b # Points to our "local" environment
export LD_TIMEOUT_SECONDS=30
export FLAGDATA_FILE="./cypress/fixtures/flagdata.json" # File to load LD flag data from when FLAG_SOURCE=FILE
# Default minio credentials for local use
export MINIO_ACCESS_KEY='minioadmin'
export MINIO_SECRET_KEY='minioadmin'
# If not on Windows+WSL, run `scripts/dev hosts:check` to ensure this will resolve!
export MINIO_ADDRESS="http://minio:9004"
# For connecting to a local postgres instance
export PGHOST=localhost
export PGPORT=5432
export PGDATABASE=postgres
export PGUSER=postgres
export PGPASS=mysecretpassword
export PGPASSWORD=mysecretpassword
export PGSSLMODE=disable
export DB_MAX_CONNECTIONS=20
export USE_TLS=false
# Add local paths for binaries and scripts
PATH_add ./bin
# CEDAR
export CEDAR_CORE_MOCK=true
export CEDAR_INTAKE_ENABLED=false
# for CEDAR core caching
export CEDAR_PROXY_URL=""
export CEDAR_API_URL="webmethods-apigw.cedarimpl.cms.gov"
export CEDAR_API_KEY=""
export CEDAR_CORE_API_VERSION="2.0.0"
export CEDAR_EMAIL_ADDRESS="[email protected]"
export CEDAR_CACHE_EXPIRE_TIME="7d"
export CEDAR_CORE_SKIP_PROXY=false
# Frontend Dev
export ESLINT_NO_DEV_ERRORS=true
# Backend Debug
export AIR_CONFIG=" "
export AIR_CONFIG_DEBUG="-c .airDebug.conf"
export AIR_CONFIG_DEBUG_WAIT="-c .airDebugWait.conf"
# Fix job codes when sending email locally
export ALT_JOB_CODES=true
# Load a local overrides file. Any changes you want to make for your local
# environment should live in that file.
if [ -e .envrc.local ]
then
source_env .envrc.local
fi