This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* document env vars part 1 * update .env.template to include only necessary env vars. Co-authored-by: Toni Nurmi <[email protected]>
- Loading branch information
Toni Nurmi
and
Toni Nurmi
authored
Dec 10, 2020
1 parent
e29299e
commit a05aece
Showing
6 changed files
with
117 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,62 @@ | ||
# Required environmental variables | ||
|
||
copy .env.template to .env and fill following variables manually | ||
|
||
| Name | Description | example | | ||
| ------------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | ||
| DATACITE_PREFIX | | | | ||
| DATACITE_URL | | | | ||
| DATACITE_ETSIN_URL_TEMPLATE | | | | ||
| DATACITE_USERNAME | | | | ||
| DATACITE_PASSWORD | | | | ||
| DJANGO_SECRET_KEY | replace with proper django secret key | | | ||
| ERROR_FILES_PATH | | /home/user/repo-root/logs/errors | | ||
| ES_CONFIG_DIR | | /home/user/repo-root/src/metax_api/tasks/refdata/refdata_indexer/resources/es-config/ | | ||
| LOCAL_REF_DATA_FOLDER | | /home/user/repo-root/src/metax/metax-api/src/metax_api/tasks/refdata/refdata_indexer/resources/local-refdata/ | | ||
| LOGGING_DEBUG_HANDLER_FILE | | /home/user/repo-root/src/metax/metax-api/logs/metax_api.log | | ||
| LOGGING_GENERAL_HANDLER_FILE | | /home/user/repo-root/src/metax/metax-api/logs/metax_api.log | | ||
| LOGGING_JSON_FILE_HANDLER_FILE | | /home/user/repo-root/src/metax/metax-api/logs/metax_api.json.log | | ||
| METAX_DATABASE | postgres database, must be created first | metax | | ||
| METAX_DATABASE_PASSWORD | postgres owner of the database | | | ||
| METAX_DATABASE_PORT | | 5432 | | ||
| METAX_DATABASE_USER | | username | | ||
| OAI_BASE_URL | | | | ||
| ORG_FILE_PATH | | /home/user/repo-root/src/metax_api/tasks/refdata/refdata_indexer/resources/organizations/organizations.csv | | ||
| RABBIT_MQ_PASSWORD | | guest | | ||
| RABBIT_MQ_USER | | guest | | ||
| REDIS_LOCALHOST_PORT | | 6379 | | ||
| REDIS_PASSWORD | | | | ||
| REMS_ETSIN_URL_TEMPLATE | | | | ||
| REMS_FORM_ID | | | | ||
| VALIDATE_TOKEN_URL | | | | ||
| WKT_FILENAME | | /home/user/repo-root/src/metax_api/tasks/refdata/refdata_indexer/resources/uri_to_wkt.json | | ||
copy .env.template to .env and fill the required values from below table. Required column tells if you have to have the variable in the .env file | ||
|
||
| Name | Required | Default | Description | | ||
| ------------------------------ | -------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | ||
| ADDITIONAL_USER_PROJECTS_PATH | unknown | "" | No clue if this is important | | ||
| ALLOWED_HOSTS | no | | defines which IP-addresses are allowed to access metax, DJANGO_ENV=local overrides this | | ||
| AUTH_SERVER_LOGOUT_URL | unknown | | Requires testing if this is needed | | ||
| DATACITE_ETSIN_URL_TEMPLATE | yes | | | ||
| DATACITE_PASSWORD | yes | | | ||
| DATACITE_PREFIX | yes | | | ||
| DATACITE_URL | yes | | | ||
| DATACITE_USERNAME | yes | | | ||
| DEBUG | no | False | | ||
| DJANGO_ENV | no | local | Specifies the environment, corresponds with the environments found in src/metax_api/settings/environments/ | | ||
| DJANGO_SECRET_KEY | yes | | | ||
| DRAFT_ENABLED | no | | | ||
| ELASTIC_SEARCH_HOSTS | yes | | Elastic Search instance IP and port | | ||
| ELASTIC_SEARCH_PORT | no | 9200 | Is not used currently, but should be in the future | | ||
| ELASTIC_SEARCH_USE_SSL | yes | | Should Elastic Search queries use https | | ||
| ERROR_FILES_PATH | no | src/log/errors | Error file folder | | ||
| ES_CONFIG_DIR | no | src/metax_api/tasks/refdata/refdata_indexer/resources/es-config | metax-ops compatibility | | ||
| LOCAL_REF_DATA_FOLDER | no | src/metax_api/tasks/refdata/refdata_indexer/resources/local-refdata | metax-ops compatibility | | ||
| LOGGING_DEBUG_HANDLER_FILE | no | src/log/metax_api.log | metax-ops compatibility | | ||
| LOGGING_GENERAL_HANDLER_FILE | no | src/log/metax_api.log | metax-ops compatibility | | ||
| LOGGING_JSON_FILE_HANDLER_FILE | no | src/log/metax_api.json.log | metax-ops compatibility | | ||
| METAX_API_ROOT | yes | | Metax internal variable, must be https | | ||
| METAX_DATABASE | yes | | Postgres database name | | ||
| METAX_DATABASE_PASSWORD | yes | | Postgres database password | | ||
| METAX_DATABASE_PORT | no | 5432 | Postgres instance exposed port | | ||
| METAX_DATABASE_USER | yes | | Postgres user which owns the database | | ||
| METAX_ENV | no | local_development | Used by Metax internally, should be replaced with DJANGO_ENV in the future | | ||
| OAI_BASE_URL | yes | | | ||
| ORG_FILE_PATH | yes | src/metax_api/tasks/refdata/refdata_indexer/resources/organizations/organizations.csv | metax-ops compatibility | | ||
| RABBIT_MQ_HOSTS | yes | | RabbitMQ instance IP | | ||
| RABBIT_MQ_PASSWORD | no | guest | | ||
| RABBIT_MQ_PORT | no | 5672 | | ||
| RABBIT_MQ_TTV_ENABLED | no | | | ||
| RABBIT_MQ_USER | no | guest | | ||
| RABBIT_MQ_VHOST | no | | | ||
| RABBIT_MQ_VHOST_TTV | no | | | ||
| REDIS_HOST | yes | | Redis instance IP | | ||
| REDIS_LOCALHOST_PORT | unknown | 6379 | Not sure if all references to this are gone | | ||
| REDIS_PASSWORD | no | | | ||
| REDIS_PORT | no | 6379 | | ||
| REDIS_TEST_DB | yes | | Pick a number, any number | | ||
| REDIS_USE_PASSWORD | no | false | | ||
| REMS_API_KEY | no | | ||
| REMS_AUTO_APPROVER | no | | ||
| REMS_BASE_URL | no | | ||
| REMS_ENABLED | no | | ||
| REMS_ETSIN_URL_TEMPLATE | yes | | | ||
| REMS_FORM_ID | yes | | | ||
| REMS_METAX_USER | no | | ||
| REMS_REPORTER_USER | no | | ||
| SERVER_DOMAIN_NAME | no | | ||
| TRAVIS | no | false | Metax internal used to figure out if Metax is running on Travis virtual machine | | ||
| V1_ENABLED | no | | | ||
| V2_ENABLED | no | | | ||
| VALIDATE_TOKEN_URL | yes | | | ||
| WKT_FILENAME | no | src/metax_api/tasks/refdata/refdata_indexer/resources/uri_to_wkt.json | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,15 @@ | ||
ALLOWED_HOSTS=metax.csc.local,20.20.20.20 | ||
AUTH_SERVER_LOGOUT_URL=<required> | ||
DATACITE_PREFIX=<required> | ||
DATACITE_URL=<required> | ||
DATACITE_PASSWORD=<required> | ||
DATACITE_ETSIN_URL_TEMPLATE=<required> | ||
DATACITE_USERNAME=<required> | ||
DATACITE_PASSWORD=<required> | ||
DEBUG=on | ||
DJANGO_ENV=local | ||
DJANGO_SECRET_KEY=<required> | ||
DRAFT_ENABLED=true | ||
ELASTIC_SEARCH_HOSTS=http://localhost:9200/ | ||
ELASTIC_SEARCH_PORT=9200 | ||
ELASTIC_SEARCH_USE_SSL=False | ||
FLUSH_PASSWORD=<required> | ||
METAX_API_ROOT=<required> | ||
METAX_DATABASE=<required> | ||
METAX_DATABASE_HOST=localhost | ||
METAX_DATABASE_PASSWORD=<required> | ||
METAX_DATABASE_USER=<required> | ||
OAI_BASE_URL=http:<required> | ||
RABBIT_MQ_HOSTS=<required> | ||
RABBIT_MQ_PASSWORD=<required> | ||
RABBIT_MQ_PORT=<required> | ||
RABBIT_MQ_USER=<required> | ||
RABBIT_MQ_VHOST=metax | ||
REDIS_HOST=<required> | ||
REDIS_PASSWORD=<required> | ||
REDIS_PORT=<required> | ||
REDIS_SENTINEL_SERVICE=<required> | ||
REDIS_TEST_DB=15 | ||
REDIS_USE_PASSWORD=false | ||
REMS_API_KEY=<REPLACE_WITH_REMS_API_KEY> | ||
REMS_AUTO_APPROVER=<required> | ||
REMS_BASE_URL= | ||
REMS_ENABLED=<required> | ||
REMS_ETSIN_URL_TEMPLATE=<required> | ||
REMS_FORM_ID=<required> | ||
REMS_METAX_USER=<required> | ||
REMS_REPORTER_USER=<required> | ||
SERVER_DOMAIN_NAME=<required> | ||
VALIDATE_TOKEN_URL=<required> | ||
OAI_BASE_URL=<required> | ||
RABBIT_MQ_VHOST=<required> | ||
REMS_ENABLED=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.