mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
Add some more settings
This commit is contained in:
parent
3a28a95b55
commit
5873861862
3 changed files with 4 additions and 2 deletions
|
@ -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…
Reference in a new issue