Add some more settings

tempfix
tobtoht 3 years ago
parent 3a28a95b55
commit 5873861862

@ -35,7 +35,7 @@ print("""\033[91m
async def _setup_cache(app: Quart):
global cache
data = {
"address": "redis://localhost"
"address": settings.redis_address
}
if settings.redis_password:

@ -346,7 +346,7 @@ class FeatherApi:
timeout = aiohttp.ClientTimeout(total=5)
d = {'timeout': timeout}
if ".onion" in node:
d['connector'] = ProxyConnector.from_url('socks5://127.0.0.1:9050')
d['connector'] = ProxyConnector.from_url(settings.tor_socks)
d['timeout'] = aiohttp.ClientTimeout(total=12)
try:
async with aiohttp.ClientSession(**d) as session:

@ -6,6 +6,8 @@ debug = False
host = "127.0.0.1"
port = 1337
redis_password = None
redis_address = "redis://localhost"
tor_socks = "socks5://127.0.0.1:9050"
rpc_url = "http://127.0.0.1:18089"
xmrchain = "https://stagenet.xmrchain.net"

Loading…
Cancel
Save