Browse Source

Updated config.toml and config.py now that things have been moved to secrets file

Kirk Trombley 6 years ago
parent
commit
47ecd7b92a
2 changed files with 13 additions and 2 deletions
  1. 11 0
      config/config.toml
  2. 2 2
      src/config.py

+ 11 - 0
config/config.toml

@@ -0,0 +1,11 @@
+[plugins]
+echo_plugin = [ "echo" ]
+
+[postgres]
+host = "db"
+user = "postgres"
+db = "postgres"
+
+[teamspeak]
+host = "kirkleon.ddns.net"
+user = "serveradmin"

+ 2 - 2
src/config.py

@@ -26,8 +26,8 @@ def get_secret(key):
     return c
 
 BOTS_LOOKUP = get_secret("bots")
-GLOBAL_ADMINS = get_config("auths.global")
-GROUP_ADMINS = get_config("auths.group")
+GLOBAL_ADMINS = get_secret("auths.global")
+GROUP_ADMINS = get_secret("auths.group")
 PLUGINS = get_config("plugins")
 API_KEY = get_secret("api_key")
 POSTGRES = f'{get_config("postgres.user")}:{get_secret("postgres.pass")}@{get_config("postgres.host")}/{get_config("postgres.db")}'