diff --git a/config py.md b/config py.md index 13b6ae0cc..4abd5b8a5 100644 --- a/config py.md +++ b/config py.md @@ -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 -``` +``` \ No newline at end of file