args cleanup and full configuration in config file possible now. lot of refactoring and tons of cleanups

This commit is contained in:
Johannes Findeisen 2022-08-29 01:33:19 +02:00
commit d7f74f3914
12 changed files with 157 additions and 199 deletions

View file

@ -1,14 +1,17 @@
{
"interval": 60,
"database_name": "uplink",
"database_host": "127.0.0.1",
"database_user": "USER",
"database_password": "PASSWORD",
"database_name": "uplink",
"database_password": "uplink",
"database_type": "mysql",
"database_user": "uplink",
"httpserver_host": "0.0.0.0",
"httpserver_port": 8080,
"httpserver_framework": "cherrypy",
"mode": "cron",
"httpserver_port": 4000,
"interval": 30,
"log_level": "info",
"log_count": 5,
"log_size": 0,
"pid_file": "/var/run/user/1000/uplink.pid",
"run_mode": "cron",
"uplinks": [
{
"provider": "Cable Provider",
@ -21,4 +24,4 @@
"password": "1234"
}
]
}
}