config.py 539 B

12345678910111213141516171819202122232425262728
  1. #-*-coding:utf8-*-
  2. import os
  3. # app config
  4. LOG_LEVEL = 'DEBUG'
  5. SECRET_KEY = "secret-key"
  6. PERMANENT_SESSION_LIFETIME = 3600 * 24 * 30
  7. SITE_COOKIE = "open-falcon-ck"
  8. # Falcon+ API
  9. API_ADDR = "http://127.0.0.1:8080/api/v1"
  10. # portal database
  11. # TODO: read from api instead of db
  12. DB_HOST = "127.0.0.1"
  13. DB_PORT = 3306
  14. DB_USER = "root"
  15. DB_PASS = ""
  16. DB_NAME = "falcon_portal"
  17. # portal site config
  18. MAINTAINERS = ['root']
  19. CONTACT = 'root@open-falcon.org'
  20. try:
  21. from rrd.local_config import *
  22. except:
  23. print "[warning] no local config file"