-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
106 lines (85 loc) · 4.01 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
source_up_if_exists
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
fi
use nix
# https://github.com/cashapp/hermit-packages/issues/309#issuecomment-1506190116
mkdir -p .hermit/node/lib
source_env_if_exists ./.envrc.local
git config --local core.hooksPath $PWD/.githooks
git config --local gpg.ssh.allowedSignersFile $PWD/allowed_signers
# Set environment variables
set -a
: ${COMPOSE_PROJECT_NAME:=letschurch_dev}
: ${HOST_WEB_PORT:=4000}
: ${INTERNAL_WEB_HMR_PORT:=4002}
: ${HOST_WEB_HMR_PORT:=$INTERNAL_WEB_HMR_PORT}
: ${HOST_WEB_NEXT_PORT:=4001}
: ${HOST_WEB_GO_PORT:=4003}
: ${HOST_WEB_GO_URL:=http://localhost:${HOST_WEB_GO_PORT##*:}}
: ${HOST_GATEWAY_PORT:=4100}
: ${HOST_EXTERNAL_HOOKS_PORT:=4200}
: ${HOST_TEMPORAL_UI_PORT:=4400}
: ${HOST_TEMPORAL_PORT:=4401}
: ${HOST_FAKTORY_PORT:=4402}
: ${HOST_FAKTORY_UI_PORT:=4403}
: ${HOST_ES_PORT:=4500}
: ${HOST_KIBANA_PORT:=4501}
: ${HOST_MAILPIT_WEB_PORT:=4600}
: ${HOST_MAILPIT_SMTP_PORT:=4601}
: ${HOST_MAILPIT_SMTPS_PORT:=4602}
: ${HOST_IMGPROXY_PORT:=4700}
: ${HOST_LISTMONK_PORT:=4800}
: ${HOST_PG_PORT:=5432}
: ${HOST_PGWEB_PORT:=5001}
: ${HOST_METABASE_PORT:=5002}
: ${ZXCVBN_MINIMUM_SCORE:=3}
# openssl rand -hex 64
: ${JWT_SECRET:=a5f09624d6106947a62e904ef1f31d880e3c4dde7ac74d67828c197a7f72ec973ca5ccae1210ddad78e590b3734511c0a943fe8ed366640ffb09d5edc9da097a}
: ${WEB_COOKIE_SECRET:=e2a89731470feda4c198ea66523cc4cf8096bf61e1f5c4256f9d19136482a4a8b30af8d1e970d539f1f0c92954e3a769e6348d26586f2553db90e2192fff8c51}
: ${IMGPROXY_KEY:=ce64d4682be60431078d48cc71a98679ea90a91547f492cd549c1e32ce5d7d22a75583564af74712276d87966b7f6dc1e3fef9b6e627d365415879defab6da73}
: ${IMGPROXY_SALT:=715594d026d44c1476569fd74000f919c2595a3f9937704ebb541c26e7672edf7fd3db90243723cb1525b915cc5c672a4cb53190d2793991ad8c4a1fa418be80}
: ${WEB_URL:=http://localhost:${HOST_WEB_PORT##*:}}
: ${HOST_GATEWAY_URL:=http://localhost:${HOST_GATEWAY_PORT##*:}}
: ${MEDIA_URL:=https://public_media_url}
: ${IMGPROXY_URL:=http://localhost:${HOST_IMGPROXY_PORT##*:}}
: ${PG_USER:=letschurch}
: ${PG_PASSWORD:=password}
: ${PG_DATABASE:=$PG_USER}
: ${HOST_DATABASE_URL:=postgres://$PG_USER:$PG_PASSWORD@localhost:${HOST_PG_PORT##*:}/$PG_DATABASE}
: ${HOST_ELASTICSEARCH_URL:=http://localhost:${HOST_ES_PORT##*:}}
: ${MAPBOX_GEOCODING_TOKEN:=token}
: ${MAPBOX_MAP_TOKEN:=token}
: ${MAPBOX_SEARCHBOX_TOKEN:=token}
: ${SENTRY_WEB_SERVER_DSN:=https://foo@bar.ingest.sentry.io/baz}
: ${SENTRY_GATEWAY_DSN:=https://foo@bar.ingest.sentry.io/baz}
: ${SENTRY_BACKGROUND_WORKER_DSN:=https://foo@bar.ingest.sentry.io/baz}
: ${SENTRY_TRANSCODE_WORKER_DSN:=https://foo@bar.ingest.sentry.io/baz}
: ${SENTRY_TRANSCRIBE_WORKER_DSN:=https://foo@bar.ingest.sentry.io/baz}
: ${SENTRY_IMPORT_WORKER_DSN:=https://foo@bar.ingest.sentry.io/baz}
: ${S3_INGEST_REGION:=us-east-1}
: ${S3_INGEST_ENDPOINT:=s3endpoint}
: ${S3_INGEST_BUCKET:=s3bucket}
: ${S3_INGEST_ACCESS_KEY_ID:=accesskeyid}
: ${S3_INGEST_SECRET_ACCESS_KEY:=secretaccesskey}
: ${S3_PUBLIC_REGION:=us-east-1}
: ${S3_PUBLIC_ENDPOINT:=s3endpoint}
: ${S3_PUBLIC_BUCKET:=s3bucket}
: ${S3_PUBLIC_ACCESS_KEY_ID:=accesskeyid}
: ${S3_PUBLIC_SECRET_ACCESS_KEY:=secretaccesskey}
: ${RCLONE_CONFIG_LCDEVS3_TYPE:=s3}
: ${RCLONE_CONFIG_LCDEVS3_PROVIDER:=Other}
: ${RCLONE_CONFIG_LCDEVS3_ENDPOINT:=$S3_PUBLIC_ENDPOINT}
: ${RCLONE_CONFIG_LCDEVS3_ACCESS_KEY_ID:=$S3_PUBLIC_ACCESS_KEY_ID}
: ${RCLONE_CONFIG_LCDEVS3_SECRET_ACCESS_KEY:=$S3_PUBLIC_SECRET_ACCESS_KEY}
: ${RCLONE_CONFIG_MAPTILES_TYPE:=s3}
: ${RCLONE_CONFIG_MAPTILES_PROVIDER:=Other}
: ${RCLONE_CONFIG_MAPTILES_ENDPOINT:=$S3_PUBLIC_ENDPOINT}
: ${RCLONE_CONFIG_MAPTILES_ACCESS_KEY_ID:=$S3_PUBLIC_ACCESS_KEY_ID}
: ${RCLONE_CONFIG_MAPTILES_SECRET_ACCESS_KEY:=$S3_PUBLIC_SECRET_ACCESS_KEY}
: ${ANSIBLE_INVENTORY:=$PWD/infra/ansible/hosts.yml}
: ${ANSIBLE_ROLES_PATH:=$PWD/infra/ansible/roles}
: ${ANSIBLE_COLLECTIONS_PATH:=$PWD/infra/ansible/collections}
set +a
# End setting environment variables
path_add NAVI_PATH ./navi