1
0
mirror of https://github.com/r4sas/Niflheim-api synced 2025-09-03 09:32:58 +00:00
yggdrasil-api/api/config.py.example
r4sas 8897b48fc9 update files, add map and few more scripts
Signed-off-by: r4sas <r4sas@i2pmail.org>
2022-12-10 14:24:47 +00:00

25 lines
810 B
Plaintext

### Configuration file ###
### Database configuration ###
DB_PASS = "password"
DB_USER = "yggindex"
DB_NAME = "yggindex"
DB_HOST = "localhost"
DB_RETRIES = 3
DB_RECONNIDLE = 2
# count peer alive if it was available not more that amount of seconds ago
# I'm using 1 hour beause of running crawler every 30 minutes
ALIVE_SECONDS = 3600 # 1 hour
### Built-in crawler configuration ###
# Configuration to use TCP connection or unix domain socket for admin connection to yggdrasil
useAdminSock = True
yggAdminTCP = ('localhost', 9001)
yggAdminSock = ('/var/run/yggdrasil.sock')
# Save in database node info fields like buildname, buildarch, etc. (True/False)?
saveDefaultNodeInfo = False
removableFileds = ['buildname', 'buildarch', 'buildplatform', 'buildversion', 'board_name', 'kernel', 'model', 'system']