陈德本 5 năm trước cách đây
mục cha
commit
fbbad2c391
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 0
      docker-compose.yml
  2. 1 1
      proxypool/setting.py

+ 2 - 0
docker-compose.yml

@@ -4,6 +4,8 @@ services:
     build: .
     build: .
     image: 'germey/proxypool'
     image: 'germey/proxypool'
     container_name: proxypool
     container_name: proxypool
+    environment:
+      - APP_ENV: prod
     ports:
     ports:
       - "5555:5555"
       - "5555:5555"
     restart: always
     restart: always

+ 1 - 1
proxypool/setting.py

@@ -57,7 +57,7 @@ GET_TIMEOUT = env.int('GET_TIMEOUT', 10)
 
 
 # definition of tester
 # definition of tester
 TEST_URL = env.str('TEST_URL', 'http://www.baidu.com')
 TEST_URL = env.str('TEST_URL', 'http://www.baidu.com')
-TEST_TIMEOUT = env.int('TEST_TIMEOUT', 10)
+TEST_TIMEOUT = env.int('TEST_TIMEOUT', 5)
 TEST_BATCH = env.int('TEST_BATCH', 20)
 TEST_BATCH = env.int('TEST_BATCH', 20)
 # only save anonymous proxy
 # only save anonymous proxy
 TEST_ANONYMOUS = True
 TEST_ANONYMOUS = True