setting.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # -*- coding: utf-8 -*-
  2. """
  3. -------------------------------------------------
  4. File Name: setting.py
  5. Description : 配置文件
  6. Author : JHao
  7. date: 2019/2/15
  8. -------------------------------------------------
  9. Change Activity:
  10. 2019/2/15:
  11. -------------------------------------------------
  12. """
  13. # database config
  14. DATABASES = {
  15. "default": {
  16. "TYPE": "SSDB", # TYPE SSDB/MONGODB if use redis, only modify the host port, the type should be SSDB
  17. "HOST": "127.0.0.1",
  18. "PORT": 8888,
  19. "NAME": "proxy",
  20. "PASSWORD": ""
  21. }
  22. }
  23. # register the proxy getter function
  24. PROXY_GETTER = [
  25. "freeProxyFirst",
  26. "freeProxySecond",
  27. # "freeProxyThird",
  28. "freeProxyFourth",
  29. "freeProxyFifth",
  30. # "freeProxySixth"
  31. "freeProxySeventh",
  32. # "freeProxyEight",
  33. # "freeProxyNinth",
  34. "freeProxyTen",
  35. "freeProxyEleven",
  36. "freeProxyTwelve",
  37. # foreign website, outside the wall
  38. "freeProxyWallFirst",
  39. "freeProxyWallSecond",
  40. "freeProxyWallThird"
  41. ]
  42. # # API config http://127.0.0.1:5010
  43. SERVER_API = {
  44. "HOST": "0.0.0.0", # The ip specified which starting the web API
  45. "PORT": 5010 # port number to which the server listens to
  46. }