Add some more settings

This commit is contained in:
tobtoht 2020-11-14 19:35:31 +01:00
parent 3a28a95b55
commit 5873861862
3 changed files with 4 additions and 2 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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"