-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
47 lines (32 loc) · 1.28 KB
/
config.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
# Allowed origins for CORS handling.
ALLOWED_ORIGINS = os.environ.get("ALLOWED_ORIGINS", "*")
# Prefix to add before the actual API endpoints
URL_PREFIX = os.environ.get("URL_PREFIX", "")
# if OWNER email env var is set, the email automatically gets global "admin" privileges
OWNER = os.environ.get("OWNER", None)
# if TEST_USER env var is set, the user is set to this user email.
TEST_USER = os.environ.get("TEST_USER", None)
# if FLYEM_SECRET env var is set, this server can issue FlyEM tokens.
FLYEM_SECRET = os.environ.get("FLYEM_SECRET", None)
# TODO -- should really be in adapters to store
# firestore user collection name
CLIO_USERS = "clio_users"
# firestore dataset collection name
CLIO_DATASETS = "clio_datasets"
# firestore annotation collection name
CLIO_ANNOTATIONS = "clio_annotations"
CLIO_ANNOTATIONS_V2 = "clio_annotations_v2"
CLIO_ANNOTATIONS_GLOBAL = "clio_annotations_global"
# firestore saved searches collection name
CLIO_SAVEDSEARCHES = "clio_savedsearches"
# firestore keyvalue
CLIO_KEYVALUE = "clio_keyvalue"
# firestore pull requests
CLIO_PULL_REQUESTS = "clio_pull_requests"
# firestore site reports
CLIO_SITE_REPORTS = "clio_site_reports"
# firestore subvolume edit collection
CLIO_SUBVOL = "clio_subvol"
# firestore volume proxy
CLIO_VOLUMES = "clio_volumes"