root / snf-pithos-app / pithos / api / settings.py @ 8efd183f
History | View | Annotate | Download (1.7 kB)
1 |
#coding=utf8
|
---|---|
2 |
from django.conf import settings |
3 |
|
4 |
# Set local users, or a remote host. To disable local users set them to None.
|
5 |
sample_users = { |
6 |
'0000': 'test', |
7 |
'0001': 'verigak', |
8 |
'0002': 'chazapis', |
9 |
'0003': 'gtsouk', |
10 |
'0004': 'papagian', |
11 |
'0005': 'louridas', |
12 |
'0006': 'chstath', |
13 |
'0007': 'pkanavos', |
14 |
'0008': 'mvasilak', |
15 |
'0009': 'διογένης' |
16 |
} |
17 |
|
18 |
AUTHENTICATION_URL = getattr(settings, 'PITHOS_AUTHENTICATION_URL', 'http://127.0.0.1:8000/im/authenticate') |
19 |
AUTHENTICATION_USERS = getattr(settings, 'PITHOS_AUTHENTICATION_USERS', sample_users) |
20 |
|
21 |
COOKIE_NAME = getattr(settings, 'ASTAKOS_COOKIE_NAME', '_pithos2_a') |
22 |
|
23 |
# SQLAlchemy (choose SQLite/MySQL/PostgreSQL).
|
24 |
BACKEND_DB_MODULE = getattr(settings, 'PITHOS_BACKEND_DB_MODULE', 'pithos.backends.lib.sqlalchemy') |
25 |
BACKEND_DB_CONNECTION = getattr(settings, 'PITHOS_BACKEND_DB_CONNECTION', 'sqlite:////tmp/pithos-backend.db') |
26 |
|
27 |
# Block storage.
|
28 |
BACKEND_BLOCK_MODULE = getattr(settings, 'PITHOS_BACKEND_BLOCK_MODULE', 'pithos.backends.lib.hashfiler') |
29 |
BACKEND_BLOCK_PATH = getattr(settings, 'PITHOS_BACKEND_BLOCK_PATH', '/tmp/pithos-data/') |
30 |
|
31 |
# Queue for billing.
|
32 |
BACKEND_QUEUE_MODULE = getattr(settings, 'PITHOS_BACKEND_QUEUE_MODULE', None) # Example: 'pithos.backends.lib.rabbitmq' |
33 |
BACKEND_QUEUE_CONNECTION = getattr(settings, 'PITHOS_BACKEND_QUEUE_CONNECTION', None) # Example: 'rabbitmq://guest:guest@localhost:5672/pithos' |
34 |
|
35 |
# Default setting for new accounts.
|
36 |
BACKEND_QUOTA = getattr(settings, 'PITHOS_BACKEND_QUOTA', 50 * 1024 * 1024 * 1024) |
37 |
BACKEND_VERSIONING = getattr(settings, 'PITHOS_BACKEND_VERSIONING', 'auto') |
38 |
|
39 |
# Update object checksums when using hashmaps.
|
40 |
UPDATE_MD5 = getattr(settings, 'PITHOS_UPDATE_MD5', True) |
41 |
|