From 8f8630781c37905ee657e1a4bfc8752aab725fcc Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sun, 16 May 2021 19:25:54 +0200 Subject: [PATCH] [[snapshot]]: 2021-05-16 19:25:53 Affected files: "config py.md" --- config py.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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