| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # -*- coding: utf-8 -*-
- """
- -------------------------------------------------
- File Name: setting.py
- Description : 配置文件
- Author : JHao
- date: 2019/2/15
- -------------------------------------------------
- Change Activity:
- 2019/2/15:
- -------------------------------------------------
- """
- # database config
- DATABASES = {
- "default": {
- "TYPE": "SSDB", # TYPE SSDB/MONGODB if use redis, only modify the host port, the type should be SSDB
- "HOST": "127.0.0.1",
- "PORT": 8888,
- "NAME": "proxy",
- "PASSWORD": ""
- }
- }
- # register the proxy getter function
- PROXY_GETTER = [
- "freeProxyFirst",
- "freeProxySecond",
- # "freeProxyThird",
- "freeProxyFourth",
- "freeProxyFifth",
- # "freeProxySixth"
- "freeProxySeventh",
- # "freeProxyEight",
- # "freeProxyNinth",
- "freeProxyTen",
- "freeProxyEleven",
- "freeProxyTwelve",
- # foreign website, outside the wall
- "freeProxyWallFirst",
- "freeProxyWallSecond",
- "freeProxyWallThird"
- ]
- # # API config http://127.0.0.1:5010
- SERVER_API = {
- "HOST": "0.0.0.0", # The ip specified which starting the web API
- "PORT": 5010 # port number to which the server listens to
- }
|