PageRenderTime 59ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/etc/sample.yaml

https://github.com/rayleyva/Tinman
YAML | 47 lines | 31 code | 6 blank | 10 comment | 0 complexity | 093145502fc6259e87a693c2f00b246a MD5 | raw file
  1. %YAML 1.2
  2. ---
  3. Application:
  4. debug: True
  5. cookie_secret: this_isnt_very_secret_replace_me
  6. site_name: Tinman
  7. description: A web development framework based upon Tornado
  8. static_path: __base_path__/tinman/static/
  9. ui_modules: tinman.modules
  10. xsrf_cookies: True
  11. Data:
  12. - { driver: SQLAlchemy,
  13. name: localhost,
  14. dsn: "postgresql://www@localhost:5432/www",
  15. session: {autocommit: True} }
  16. Session:
  17. # Valid values: file,memcache
  18. type: file
  19. # If type is file
  20. directory: __base_path__/sessions
  21. # If type is memcache
  22. #servers = [('127.0.0.1',11211)]
  23. # Duration is in # of days, make a session last two hours
  24. duration: 0.083
  25. cookie_name: session
  26. HTTPServer:
  27. no_keep_alive: False
  28. ports: [8080,8081]
  29. xheaders: True
  30. Logging:
  31. directory: logs
  32. filename: log.txt
  33. format: "%(levelname) -10s %(asctime)s %(message)s"
  34. # Valid values: debug, info, warning, error, critical
  35. level: debug
  36. # handler: syslog
  37. # syslog:
  38. # address: localhost
  39. # facility: local6
  40. RequestHandlers:
  41. - [/, tinman.apps.Home]