No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

confspec.py 1.2KB

123456789101112131415161718192021222324252627282930
  1. from lodel.context import LodelContext
  2. LodelContext.expose_modules(globals(), {
  3. 'lodel.validator.validator': ['Validator']})
  4. CONFSPEC = {
  5. 'lodel2.webui': {
  6. 'standalone': ( 'False',
  7. Validator('string')),
  8. 'listen_address': ( '127.0.0.1',
  9. Validator('dummy')),
  10. 'listen_port': ( '9090',
  11. Validator('int')),
  12. 'static_url': ( 'http://127.0.0.1/static/',
  13. Validator('regex', pattern = r'^https?://[^/].*$')),
  14. 'virtualenv': (None,
  15. Validator('path', none_is_valid=True)),
  16. 'uwsgicmd': ('/usr/bin/uwsgi', Validator('dummy')),
  17. 'cookie_secret_key': ('ConfigureYourOwnCookieSecretKey', Validator('dummy')),
  18. 'cookie_session_id': ('lodel', Validator('dummy')),
  19. 'uwsgi_workers': (2, Validator('int'))
  20. },
  21. 'lodel2.webui.sessions': {
  22. 'directory': ( '/tmp',
  23. Validator('path')),
  24. 'expiration': ( 900,
  25. Validator('int')),
  26. 'file_template': ( 'lodel2_%s.sess',
  27. Validator('dummy')),
  28. }
  29. }