settings_test.py 937 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- coding: utf-8 -*-
  2. """
  3. walle-web
  4. Application configuration.
  5. 注意: 带了 @TODO 的地方可能需要你的调整
  6. :copyright: © 2015-2019 walle-web.io
  7. :created time: 2018-11-24 07:05:35
  8. :author: wushuiyong@walle-web.io
  9. """
  10. import os
  11. from walle.config.settings import Config
  12. from datetime import timedelta
  13. class TestConfig(Config):
  14. """Test configuration."""
  15. ENV = 'test'
  16. TESTING = True
  17. DEBUG = True
  18. # 服务启动 @TODO
  19. # HOST 修改为与 nginx server_name 一致.
  20. # 后续在web hooks与通知中用到此域名.
  21. HOST = 'admin.walle-web.io'
  22. PORT = 5000
  23. # https True, http False
  24. SSL = False
  25. # 数据库设置 @TODO
  26. SQLALCHEMY_DATABASE_URI = 'sqlite://'
  27. # 本地代码检出路径(用户查询分支, 编译, 打包) #TODO
  28. CODE_BASE = '/tmp/walle/codebase/'
  29. # 登录cookie 防止退出浏览器重新登录
  30. COOKIE_ENABLE = True