Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
157 lines (119 loc) · 7.4 KB
/
Copy path.env.example
File metadata and controls
157 lines (119 loc) · 7.4 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# To load this in a shell session:
# set -a # automatically export all variables
# source .env
# set +a
MONGO_HOST=mongodb://mongo:27017
MONGO_USERNAME=admin
MONGO_PASSWORD=root
MONGO_DBNAME=nmdc
DO_REGION_NAME=nyc3
DO_ENDPOINT_URL=https://nyc3.digitaloceanspaces.com
DO_SPACES_KEY=generateme
DO_SPACES_SECRET=generateme
ENABLE_DB_TESTS=false
# to get a string like this run:
# openssl rand -hex 32
JWT_SECRET_KEY=generateme
API_HOST=http://fastapi:8000
API_HOST_EXTERNAL=http://127.0.0.1:8000
API_ADMIN_USER=admin
API_ADMIN_PASS=root
# ────────────────────────────────────────────────────────────────────────────┐
# Base site
# ────────────────────────────────────────────────────────────────────────────┘
# ID of the base site.
API_SITE_ID=nmdc-runtime
# Credentials of the site client that the Runtime will automatically create
# for the base site.
#
# Note: If you want the site client to have specific credentials, specify them
# here _before_ the Runtime's first boot. To change them _after_ the
# Runtime's first boot, follow the instructions in `README.md`.
#
API_SITE_CLIENT_ID=generateme
API_SITE_CLIENT_SECRET=generateme
MINTING_SERVICE_ID=nmdc:minter_service_11
DAGIT_HOST=http://dagster-dagit:3000
GOLD_API_BASE_URL=https://gold.jgi.doe.gov/rest/nmdc
GOLD_API_USERNAME=x
GOLD_API_PASSWORD=x
NMDC_PORTAL_API_BASE_URL=https://data-dev.microbiomedata.org/
NEON_API_TOKEN=y
NEON_API_BASE_URL=https://data.neonscience.org/api/v0
NERSC_USERNAME=replaceme
INFO_BANNER_INNERHTML='Announcement: Something important is about to happen. If you have questions, please contact <a href="mailto:support@microbiomedata.org">support@microbiomedata.org</a>.'
# To get the latest mongo dump directory, run e.g.
# ssh -i ~/.ssh/nersc -q ${NERSC_USERNAME}@dtn01.nersc.gov 'bash -s ' < util/get_latest_nmdc_prod_dump_dir.sh 2>/dev/null
MONGO_REMOTE_DUMP_DIR=/global/cfs/projectdirs/m3408/nmdc-mongodumps/dump_nmdc-prod_2025-02-12_20-12-02
# The path to an executable copy of the `sshproxy` program maintained by NERSC.
# Note: This is currently only used by the `nersc-sshproxy` target in `Makefile`.
# Reference: https://docs.nersc.gov/connect/mfa/#sshproxy
PATH_TO_NERSC_SSHPROXY=/Users/Alice/Downloads/sshproxy
# `make up-dev` and `make up-test` will map services to host-machine port numbers using the following environment
# variables in your `.env` file. This way, different developers can use different local port numbers, without modifying
# files that get stored in the repository.
#
# Note: the `.env` file specifically is used here, *not* the file set as `env_file` in a Docker Compose file.
# This is why, e.g., `.env.test` does not include any of the below environment-variable settings.
DEV_STACK_HOST_MACHINE_PORT_DAGIT=3000
DEV_STACK_HOST_MACHINE_PORT_FASTAPI=8000
DEV_STACK_HOST_MACHINE_PORT_MONGO=27018
TEST_STACK_HOST_MACHINE_PORT_DAGIT=3005
TEST_STACK_HOST_MACHINE_PORT_FASTAPI=8005
TEST_STACK_HOST_MACHINE_PORT_MONGO=27022
# Feature flag that can be used to enable/disable the `/nmdcschema/linked_instances`
# endpoint and the tests that target it. Valid values: {`true`, `false`}
IS_LINKED_INSTANCES_ENDPOINT_ENABLED=true
# Feature flag that can be used to enable/disable the `/scalar` endpoint.
# Valid values: {`true`, `false`}
IS_SCALAR_ENABLED=true
# Feature flag that can be used to enable/disable performance profiling,
# which can be activated via the `?profile=true` URL query parameter.
IS_PROFILING_ENABLED=true
# ────────────────────────────────────────────────────────────────────────────┐
# ORCID
# ────────────────────────────────────────────────────────────────────────────┘
# The base URL at which the application can access an instance of ORCID.
# Note: For the production instance of ORCID, use: https://orcid.org (default)
# For the sandbox instance of ORCID, use: https://sandbox.orcid.org
ORCID_BASE_URL=https://orcid.org
# An ORCID Client ID obtained from: https://orcid.org/developer-tools
ORCID_NMDC_CLIENT_ID=replaceme
# The ORCID Client Secret associated with the above ORCID Client ID.
ORCID_NMDC_CLIENT_SECRET=replaceme
# ────────────────────────────────────────────────────────────────────────────┐
# Sentry
# ────────────────────────────────────────────────────────────────────────────┘
# Feature flag to enable (true) or disable (false) the Sentry integration. When this
# is false, none of the other `SENTRY_*` environment variables come into play.
IS_SENTRY_ENABLED=false
# The Sentry DSN (Data Source Name) you want the Sentry SDK to use. This URL is specific
# to a Sentry project and can be obtained from the Sentry project's dashboard.
# Docs: https://docs.sentry.io/concepts/key-terms/dsn-explainer/
SENTRY_DSN=
# The name of the environment (e.g., "production", "development", "local", "unknown")
# on Sentry within which you want data sent from this application instance to be stored.
# Docs: https://docs.sentry.io/platforms/python/configuration/environments/
SENTRY_ENVIRONMENT=unknown
# The percentage of all transactions (0.0 is 0%, 1.0 is 100%) that you want Sentry
# to _capture_ (i.e., you want to be sent to Sentry).
# Docs: https://docs.sentry.io/platforms/python/tracing/#configure
SENTRY_TRACES_SAMPLE_RATE=0.0
# The percentage of sampled transactions (0.0 is 0%, 1.0 is 100%) that you want Sentry
# to _profile_ (i.e., about which you want to send even more details to Sentry).
# Docs: https://docs.sentry.io/platforms/python/profiling/#managing-profile-sampling-rates
SENTRY_PROFILES_SAMPLE_RATE=0.0
# ────────────────────────────────────────────────────────────────────────────┐
# Dagster
# ────────────────────────────────────────────────────────────────────────────┘
# Feature flag to enable (true) or disable (false) Dagster's Slack integration.
# When this is false, the 3 `DAGSTER_*` environment variables below are ignored.
IS_DAGSTER_SLACK_ENABLED=false
# OAuth token for a Slack bot that has the "chat:write" scope, and is in the
# Slack channel to which you want Dagster to send messages.
DAGSTER_SLACK_BOT_TOKEN=
# Name or ID of the Slack channel to which you want Dagster to send messages.
DAGSTER_SLACK_CHANNEL=dagster-notifications
# An environment name (e.g., "production", "development", "local", "unknown")
# that can be included in Slack messages sent by this Dagster instance.
DAGSTER_ENVIRONMENT=unknown