Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Configuration Settings | Environment Variables

Stefan Negru edited this page Jul 24, 2018 · 6 revisions

Table of Contents

Default Configuration File

[DEFAULT]
# log = /path/to/logger.yml or keyword (like 'default', 'debug', 'logstash', 'silent')
log = nope

[ingestion]
do_checksum = False

[quality_control]
keyserver_endpoint = https://ega_keys:9000/retrieve/%s/private
verify_certificate = False

[inbox]
location = /ega/inbox/%s
mode = 2750

[vault]
###########################
# Back by POSIX fs
###########################
location = /ega/vault
mode = 2750
driver = FileStorage

###########################
# Backed by S3
###########################
# driver = S3Storage
url = http://ega_vault_s3:9000
region = lega
bucket = lega
access_key = LEGA-VAULT-ACCESS-KEY
secret_key = LEGA-VAULT-SECRET-KEY
chunk_size = 4194304

## Connecting to Local Broker
[broker]
enable_ssl = no
host = ega_mq
port = 5672
username = guest
password = guest
vhost = /
connection_attempts = 10
retry_delay = 10
heartbeat = 0

[postgres]
host = localhost
port = 5432
user = admin
password = secret
db = lega
try = 2
try_interval = 1

[keyserver]
ssl_certfile = /etc/ega/ssl.cert
ssl_keyfile = /etc/ega/ssl.key
host = 0.0.0.0
port = 443
health_endpoint = /health
# for now we default it to health endpoint until we provide an /info or status endpoint
status_endpoint = /health

[eureka]
endpoint = http://localhost:8761
# in seconds
interval = 20

Environment Variables

LocalEGA

Variable Default Value Description
QUALITY_CONTROL_KEYSERVER_ENDPOINT https://ega_keys:9000/retrieve/%s/private
QUALITY_CONTROL_VERIFY_CERTIFICATE False
LEGA_PASSWORD used by Keyserver and verify
KEYS_PASSWORD used by Keyserver
DB_INSTANCE ega-db used by Postgres and Inbox
MQ_INSTANCE ega-mq used by Worker and Vault
KEYSERVER_INSTANCE ega-keys used by Worker
INBOX_LOCATION /ega/inbox/%s
INBOX_MODE 2750
VAULT_MODE 2750
VAULT_DRIVER FileStorage
VAULT_LOCATION /ega/vault
VAULT_URL http://ega_vault_s3:9000
VAULT_REGION lega
VAULT_BUCKET lega
VAULT_ACCESS_KEY LEGA-VAULT-ACCESS-KEY
VAULT_SECRET_KEY LEGA-VAULT-SECRET-KEY
VAULT_CHUNK_SIZE 4194304
BROKER_ENABLE_SSL no
BROKER_HOST ega_mq
BROKER_PORT 5672
BROKER_USERNAME
BROKER_PASSWORD
BROKER_VHOST /
BROKER_HEARTBEAT 0
BROKER_RETRY_DELAY 10
BROKER_CONNECTION_ATTEMPTS 10
POSTGRES_HOST localhost
POSTGRES_PORT 5432
POSTGRES_USER admin
POSTGRES_PASSWORD secret
POSTGRES_DB lega
POSTGRES_TRY 2
POSTGRES_TRY_INTERVAL 1
KEYSERVER_SSL_CERTFILE /etc/ega/ssl.cert
KEYSERVER_SSL_KEYFILE /etc/ega/ssl.key
KEYSERVER_HOST 0.0.0.0
KEYSERVER_PORT 443
KEYSERVER_HEALTH_ENDPOINT /health
KEYSERVER_STATUS_ENDPOINT /health
EUREKA_ENDPOINT http://localhost:8761
EUREKA_INTERVAL 20
S3_ACCESS_KEY
S3_SECRET_KEY
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

CEGA

Variable Description
CEGA_MQ_USER User used by LocalEGA instance to identify at the CEGA Message Broker
CEGA_MQ_PASSWORD
CEGA_REST_PASSWORD Currently used in the form CEGA_REST_{INSTANCE}_PASSWORD
CEGA_ENDPOINT
CEGA_ENDPOINT_CREDS
CEGA_ENDPOINT_JSON_PASSWD
CEGA_ENDPOINT_JSON_PUBKEY

Other Variables

Variable Description
PGP_PASSPHRASE
PGP_NAME
PGP_COMMENT
PGP_EMAIL
SSL_SUBJ
MINIO_ACCESS_KEY
MINIO_SECRET_KEY
DOCKER_PORT_inbox
DOCKER_PORT_mq
DOCKER_PORT_minio
DOCKER_PORT_kibana