config.py 740 Bytes
Newer Older
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
from collections import namedtuple

S3Config = namedtuple('S3', ['uploads_bucket', 'repository_bucket', 'archive_bucket'])
RabitMQConfig = namedtuple('RabbitMQ', ['host', 'port', 'user', 'password'])
MinioConfig = namedtuple('Minio', ['host', 'port', 'accesskey', 'secret'])
FSConfig = namedtuple('FSConfig', ['tmp'])

s3 = S3Config(
  uploads_bucket='uploads',
  repository_bucket='repository',
  archive_bucket='archive'
)
rabbitmq = RabitMQConfig(
  host = 'localhost',
  port = None,
  user = 'rabbitmq',
  password = 'rabbitmq'
)
minio = MinioConfig(
  host = 'localhost',
  port = 9007,
  accesskey = 'AKIAIOSFODNN7EXAMPLE',
  secret = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
)
fs = FSConfig(
  tmp = './infrastructure/data/tmp'
)