-
Notifications
You must be signed in to change notification settings - Fork 10
/
.envrc
99 lines (83 loc) · 3.26 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
#! /usr/bin/env bash
#########################
# Project Configuration #
#########################
# Helpers for .envrc
APP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# 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 REACT_APP_API_ADDRESS=$CLIENT_PROTOCOL://$CLIENT_DOMAIN:$API_PORT/api/v1
export REACT_APP_APP_ENV=$APP_ENV
# Email variables
export EMAIL_TEMPLATE_DIR=$APP_DIR/pkg/email/templates
export [email protected]
# AWS variables
export AWS_REGION=us-west-2
export AWS_SES_SOURCE="\"EASi Local\" <[email protected]>"
export AWS_S3_FILE_UPLOAD_BUCKET=easi-app-file-uploads
# Setup a local lambda to generate PDFs
export LAMBDA_FUNCTION_PRINCE=handler
export LAMBDA_ENDPOINT="http://localhost:9001"
# OKTA variables
export OKTA_CLIENT_ID=0oa2e913coDQeG19S297
export OKTA_CLIENT_ID_DEV=0oa2e913coDQeG19S297
export REACT_APP_OKTA_CLIENT_ID=$OKTA_CLIENT_ID
export OKTA_DOMAIN=https://test.idp.idm.cms.gov
export REACT_APP_OKTA_DOMAIN=$OKTA_DOMAIN
export OKTA_SERVER_ID=aus2e96etlbFPnBHt297
export OKTA_SERVER_ID_DEV=aus2e96etlbFPnBHt297
export REACT_APP_OKTA_SERVER_ID=$OKTA_SERVER_ID
export OKTA_ISSUER=$OKTA_DOMAIN/oauth2/$OKTA_SERVER_ID
export REACT_APP_OKTA_ISSUER=$OKTA_ISSUER
export OKTA_REDIRECT_URI=http://localhost:3000/implicit/callback
export REACT_APP_OKTA_REDIRECT_URI=$OKTA_REDIRECT_URI
# OKTA test account
# Needed to run Cypress tests. Look in 1Password.
export OKTA_TEST_USERNAME=
export OKTA_TEST_PASSWORD=
export OKTA_TEST_SECRET=
# Launch Darkly account
export LD_SDK_KEY=
export LD_TIMEOUT_SECONDS=30
export LD_ENV_USER=6dec0457-d4f0-490b-83ed-4502aa44a95e
export REACT_APP_LD_ENV_USER=$LD_ENV_USER
export REACT_APP_LD_USER_HASH=
export FLAG_SOURCE=LOCAL # LAUNCH_DARKLY or LOCAL
export REACT_APP_LD_CLIENT_ID=5f51549c031fe609e6df43d8
# For connecting to a local postgres instance
export PGHOST=localhost
export PGPORT=5432
export PGDATABASE=postgres
export PGUSER=postgres
export PGPASS=""
export PGSSLMODE=disable
# Self-signed TLS cert/key pair for running server locally during development
export SERVER_CERT=$(cat ./config/tls/devlocal-https.crt)
export SERVER_KEY=$(cat ./config/tls/devlocal-https.key)
##########################################
# DO NOT MAKE LOCAL CHANGES TO THIS FILE #
# #
# Vars in this file can be overridden by #
# exporting them in .envrc.local #
##########################################
# Add local paths for binaries and scripts
PATH_add ./bin
export CEDAR_ENV=dev
export CEDAR_API_URL="webmethods-apigw.cedardev.cms.gov"
export CEDAR_DIRECTORY=pkg/cedar
export CEDAR_EASI_DIRECTORY=$CEDAR_DIRECTORY/cedareasi
export CEDAR_LDAP_DIRECTORY=$CEDAR_DIRECTORY/cedarldap
export CEDAR_EASI_SWAGGER_FILE=$CEDAR_EASI_DIRECTORY/swagger-$CEDAR_ENV.json
export CEDAR_LDAP_SWAGGER_FILE=$CEDAR_LDAP_DIRECTORY/swagger-$CEDAR_ENV.json
# 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