Work increment
parent
8988f12a14
commit
42cd900638
@ -0,0 +1,2 @@
|
||||
server_name: "valhalla"
|
||||
server_port: 8088
|
@ -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…
Reference in New Issue