mirror of
https://codeberg.org/wownero/wowlet-backend.git
synced 2026-10-17 05:51:45 +02:00
Add some more settings
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user