Skip to main content

Environment variables

info

There are some environment variables that were added with Re:Earth version upgrade, but I'm still writing them down.

The application environment variables should be provided in an .env file as follows:

.env
REEARTH_AUTH0_DOMAIN=hogehoge.auth0.com
REEARTH_AUTH0_AUDIENCE=reearth
REEARTH_AUTH0_CLIENTID=xxxxx
REEARTH_AUTH0_CLIENTSECRET=xxxxxxx

These environment variables are loaded through the GoDotEnv library. Then the app configs are loaded through the envconfig library as follows:

NameIs RequiredDefault ValueDescription
PORTtrue8080int to configure server port
REEARTH_DBtruemongodb://localhoststring to declare database connection string
REEARTH_AUTH0_DOMAINtrueAuth config for more details: Link
REEARTH_AUTH0_AUDIENCEtrueAuth config for more details: Link
REEARTH_AUTH0_CLIENTIDtrueAuth config for more details: Link
REEARTH_AUTH0_CLIENTSECRETfalseAuth config for more details: Link
REEARTH_AUTH0_WEBCLIENTIDfalseAuth config for more details: Link
REEARTH_GRAPHQL_COMPLEXITYLIMITfalse4000Set complexity limit for graphql: Link
REEARTH_GCS_BUCKETNAMEfalse
REEARTH_GCS_PUBLICATIONCACHECONTROLfalse
GOOGLE_CLOUD_PROJECTfalse
REEARTH_WEBfalseA map and will be injected and exposed as /reearth_config.json for more details see FE section.
REEARTH_PROFILERfalsestring to select profiler type, for now the only supported type is gcp
REEARTH_TRACERfalsestring to select tracer type, for now the supported types are gcp , jaeger
REEARTH_TRACERSAMPLE0float64 sample fraction for cloud tracer
REEARTH_ASSETBASEURLstring
REEARTH_ORIGINS[]string comma separated values of allowed origins
REEARTH_SIGNUPSECRETstring