Work increment

master
Wojciech Janota 2 years ago
parent 8988f12a14
commit 42cd900638

@ -0,0 +1,2 @@
server_name: "valhalla"
server_port: 8088

@ -10,4 +10,5 @@ class Server(host, port, name, access_password, version):
@app.route("/client/register")
def register_new_client_to_database(self):
# TODO: implement

@ -0,0 +1 @@
from utils.config import ServerConfig

@ -0,0 +1,16 @@
import os
import yaml
class ServerConfig:
config_file = {}
with open("~/.config/orchestrator/config.yml", "r") as stream:
try:
config_file = yaml.safe_load(stream)
except Exception as e:
print(e)
config = config_file
server_name_override = os.environ.get("VALHALLA_SERVER_NAME")
server_port_override = os.environ.get("VALHALLA_SERVER_PORT")

@ -0,0 +1 @@
from simplesqlite import SimpleSQLite
Loading…
Cancel
Save