Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00d4388

Browse files
author
Germey
committed
add prefix
1 parent 0686527 commit 00d4388

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

‎build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ services:
55
container_name: redis4proxypool
66
ports:
77
- "6374:6379"
8-
# restart: always
98
proxypool:
109
build: .
1110
image: "germey/proxypool:master"
@@ -16,4 +15,4 @@ services:
1615
# volumes:
1716
# - proxypool/crawlers/private:/app/proxypool/crawlers/private
1817
environment:
19-
REDIS_HOST: redis4proxypool
18+
PROXYPOOL_REDIS_CONNECTION_STRING: redis://@redis4proxypool:6379/0

‎docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ services:
1414
# volumes:
1515
# - proxypool/crawlers/private:/app/proxypool/crawlers/private
1616
environment:
17-
REDIS_HOST: redis4proxypool
17+
PROXYPOOL_REDIS_HOST: redis4proxypool

‎proxypool/setting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from os.path import dirname, abspath, join
33
from environs import Env
44
from loguru import logger
5-
from proxypool.utils.parse import parse_redis_connection_string
65

76

87
env = Env()
@@ -39,7 +38,8 @@
3938
'PROXYPOOL_REDIS_CONNECTION_STRING', env.str('REDIS_CONNECTION_STRING', None))
4039

4140
# redis hash table key name
42-
REDIS_KEY = env.str('REDIS_KEY', 'proxies:universal')
41+
REDIS_KEY = env.str('PROXYPOOL_REDIS_KEY', env.str(
42+
'REDIS_KEY', 'proxies:universal'))
4343

4444
# definition of proxy scores
4545
PROXY_SCORE_MAX = 100

‎proxypool/utils/parse.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /