Add some more settings
This commit is contained in:
parent
3a28a95b55
commit
5873861862
|
@ -35,7 +35,7 @@ print("""\033[91m
|
||||||
async def _setup_cache(app: Quart):
|
async def _setup_cache(app: Quart):
|
||||||
global cache
|
global cache
|
||||||
data = {
|
data = {
|
||||||
"address": "redis://localhost"
|
"address": settings.redis_address
|
||||||
}
|
}
|
||||||
|
|
||||||
if settings.redis_password:
|
if settings.redis_password:
|
||||||
|
|
|
@ -346,7 +346,7 @@ class FeatherApi:
|
||||||
timeout = aiohttp.ClientTimeout(total=5)
|
timeout = aiohttp.ClientTimeout(total=5)
|
||||||
d = {'timeout': timeout}
|
d = {'timeout': timeout}
|
||||||
if ".onion" in node:
|
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)
|
d['timeout'] = aiohttp.ClientTimeout(total=12)
|
||||||
try:
|
try:
|
||||||
async with aiohttp.ClientSession(**d) as session:
|
async with aiohttp.ClientSession(**d) as session:
|
||||||
|
|
|
@ -6,6 +6,8 @@ debug = False
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
port = 1337
|
port = 1337
|
||||||
redis_password = None
|
redis_password = None
|
||||||
|
redis_address = "redis://localhost"
|
||||||
|
tor_socks = "socks5://127.0.0.1:9050"
|
||||||
rpc_url = "http://127.0.0.1:18089"
|
rpc_url = "http://127.0.0.1:18089"
|
||||||
xmrchain = "https://stagenet.xmrchain.net"
|
xmrchain = "https://stagenet.xmrchain.net"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue