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

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