[[snapshot]]: 2021-05-16 19:25:53

Affected files:

"config py.md"
This commit is contained in:
2021-05-16 19:25:54 +02:00
parent c5fa896f63
commit 8f8630781c
+6 -3
View File
@@ -1,4 +1,7 @@
```
- Per-environment variables for [[agora server]] can be managed in `config.py` in [[go/agora-server/git]]
- snapshot follows to illustrate
```
class DefaultConfig(object):
AGORA_PATH = os.getenv('AGORA_PATH', os.path.join('/home', getpass.getuser(), 'agora'))
# standard: no trailing slashes anywhere in variables.
@@ -18,7 +21,7 @@ class ProductionConfig(DefaultConfig):
# EXPERIMENTS
ENABLE_CTZN = True
ENABLE_STATS = True
# ENABLE_STATS is False by default
class DevelopmentConfig(DefaultConfig):
URL_BASE = "http://dev.anagora.org"
@@ -27,4 +30,4 @@ class DevelopmentConfig(DefaultConfig):
# EXPERIMENTS
ENABLE_CTZN = True
ENABLE_STATS = True
```
```