Every Eternaltwin game or application must be able to be configured using either environment variables or a configuration file.
When using environment variables, use
UPPER_SNAKE_CASE. Prefix all the
variables with an identifier unique to your application.
NEOPARC_EXTERNAL_URIto configure the external URI of Neoparc (Dinoparc remake).
Do not invent your own file format. Use either
.env files, JSON files or
Provide an example configuration file in your repository.
You may allow your application to start without any environement variable or configuration file. Assume that the application is running locally in development mode in such case.
Your application must fully load the configuration during its initialization.
It must check that the configuration is valid and represent it as a single value. Pick the representation that best suits your language, usually a class instance. Avoid untyped maps.
The goal is to avoid ad-hoc configuration access: the rest of the application should only use this configuration value.
This section contains a list of values the must configurable.
Eternaltwin URI, used for OAuth and the API.
Eternaltwin OAuth client id
client_id for Eternaltwin.
Eternaltwin OAuth client secret
client_secret for Eternaltwin.
Public URI for the root of the application.