config-example.ini 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [Main]
  2. # if you're using an external lmdb database or a custom
  3. # directory you can specify directory and users database
  4. # WARNING: do not change or uncomment this config except you
  5. # know what are you doing!
  6. #
  7. # db_dir = .db
  8. # users_database = users
  9. # log_dir: specify log destination
  10. # Default: .log
  11. #
  12. # log_dir = .log
  13. # log levels:
  14. # 0: nothing (for disable logging)
  15. # 1: error
  16. # 2: warning
  17. # 3: info
  18. # 4: debug (if it's enabled by 'DEBUG = True' in main.py)
  19. # Default: 0
  20. log_level = 4
  21. [Golestan reporter]
  22. # TODO: add news_source config
  23. # check Golestan for new news every 100 seconds
  24. #
  25. # check_interval = 100
  26. # set a smtp server and port to send email
  27. smtp_server = example.com
  28. smtp_port = 587
  29. # enter your email address and password to send email from it
  30. sender_email = bsimjoo@example.com
  31. email_password = password
  32. # a custom name as email sender
  33. #
  34. # sender_name = Golestan reporter
  35. # Golestan reporter uses a pickled file to store last sent news
  36. # Default value is 'last news.dat' file in current directory
  37. # WARNING: keep this file in a safe place, unsafe pickled file
  38. # could be dangerous
  39. #
  40. # last_news_file = last news.dat