📚 node [[config py]]
- 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.
# with protocol
URL_BASE = "https://anagora.org" <button class="pull-url" value="https://anagora.org"">pull</button>
# without protocol
URI_BASE = "anagora.org"
AGORA = URI_BASE
# EXPERIMENTS
# experiments can be booleans or probabilities (reals in 0..1).
# release process: set them initially to False/0 in the DefaultConfig and then override in the right environment.
ENABLE_CTZN = False
ENABLE_STATS = False
class ProductionConfig(DefaultConfig):
# EXPERIMENTS
ENABLE_CTZN = True
# ENABLE_STATS is False by default
class DevelopmentConfig(DefaultConfig):
URL_BASE = "http://dev.anagora.org" <button class="pull-url" value="http://dev.anagora.org"">pull</button>
URI_BASE = "dev.anagora.org"
# EXPERIMENTS
ENABLE_CTZN = True
ENABLE_STATS = True
📖 stoas
- public document at doc.anagora.org/config-py
- video call at meet.jit.si/config-py
⥱ context
↑ pushing here
(none)
(none)
↓ pulling this
(none)
(none)
🔎 full text search for 'config py'