πŸ“• Node [[config-py]]
↳ πŸ““ Projection [[@flancian/config py]]
πŸ““ File config py.md (text) by @flancian ️本 πŸ“
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
Receiving pushes... (requires JavaScript)
Loading context... (requires JavaScript)
πŸ›οΈ Stoas for [[@flancian/config py]]
πŸ“– Open document (Hedgedoc) at https://doc.anagora.org/config-py
πŸ“– Open document (Etherpad) at https://stoa.anagora.org/p/config-py