From 17a14cedb6df4145653fe7777ec1f33daf7d7b39 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 22 Oct 2022 07:37:47 +0200 Subject: [PATCH] Improved config #70 --- kdb-bot/docker-compose.staging.yml | 4 ++- kdb-bot/docker-compose.yml | 2 ++ .../config/apisettings.production.json | 34 ++++++++++++++++++- .../bot_api/config/apisettings.staging.json | 34 ++++++++++++++++++- 4 files changed, 71 insertions(+), 3 deletions(-) diff --git a/kdb-bot/docker-compose.staging.yml b/kdb-bot/docker-compose.staging.yml index 0f3f0b12f0..d44ab90bb5 100644 --- a/kdb-bot/docker-compose.staging.yml +++ b/kdb-bot/docker-compose.staging.yml @@ -18,6 +18,8 @@ services: KDB_TOKEN: "OTk4MTU5ODAyMzkzOTY0NTk0.G4rLkF.uBQ9pW8X1Lm5agHqvBfzf7qEf8Ton-3a1oJPmY" KDB_PREFIX: "!kt " restart: 'no' + ports: + - '8043:80' kdb_web_staging_1: image: kdb-web/kdb-web:0.3 @@ -28,7 +30,7 @@ services: - kdb_web_staging_1:/app restart: 'no' ports: - - '8043:80' + - '8044:80' kdb_db_staging_1: image: mysql:latest diff --git a/kdb-bot/docker-compose.yml b/kdb-bot/docker-compose.yml index fe4a1d8064..7539347e4e 100644 --- a/kdb-bot/docker-compose.yml +++ b/kdb-bot/docker-compose.yml @@ -18,6 +18,8 @@ services: KDB_TOKEN: "" KDB_PREFIX: "!k " restart: 'no' + ports: + - '8041:80' kdb_web_prod_1: image: kdb-web/kdb-web:0.3 diff --git a/kdb-bot/src/bot_api/config/apisettings.production.json b/kdb-bot/src/bot_api/config/apisettings.production.json index 9e26dfeeb6..5eb0107f91 100644 --- a/kdb-bot/src/bot_api/config/apisettings.production.json +++ b/kdb-bot/src/bot_api/config/apisettings.production.json @@ -1 +1,33 @@ -{} \ No newline at end of file +{ + "Api": { + "Port": 80, + "Host": "0.0.0.0", + "RedirectToHTTPS": false + }, + "Authentication": { + "SecretKey": "cEwzW2BdcWxGLTBdPClJImNIbDFJXjVsPGw=", + "Issuer": "https://kdb.keksdose-gaming.de/", + "Audience": "https://kdb.keksdose-gaming.de/", + "TokenExpireTime": 1, + "RefreshTokenExpireTime": 7 + }, + "DiscordAuthentication": { + "ClientSecret": "SXpIOGY4ZzhWVEljOXJwSk5QcVpNU0lmRDNTb2c1Vk8=", + "RedirectURL": "https://kdb.keksdose-gaming.de/auth/register", + "Scope": [ + "identify", + "email" + ], + "TokenURL": "https://discordapp.com/api/oauth2/token", + "AuthURL": "https://discordapp.com/api/oauth2/authorize" + }, + "Frontend": { + "URL": "https://kdb.keksdose-gaming.de/" + }, + "EMailClientSettings": { + "Host": "mail.sh-edraft.de", + "Port": "587", + "UserName": "kruemmelmonster@sh-edraft.de", + "Credentials": "YjAwT3tPSVspezdadExdOEkoV3M3XiNb" + } +} \ No newline at end of file diff --git a/kdb-bot/src/bot_api/config/apisettings.staging.json b/kdb-bot/src/bot_api/config/apisettings.staging.json index 9e26dfeeb6..5ce66fc330 100644 --- a/kdb-bot/src/bot_api/config/apisettings.staging.json +++ b/kdb-bot/src/bot_api/config/apisettings.staging.json @@ -1 +1,33 @@ -{} \ No newline at end of file +{ + "Api": { + "Port": 80, + "Host": "0.0.0.0", + "RedirectToHTTPS": false + }, + "Authentication": { + "SecretKey": "Kj87RjklLUM1MytsUjtbcCswRidBV2VdMXU=", + "Issuer": "https://kdb-test.keksdose-gaming.de/", + "Audience": "https://kdb-test.keksdose-gaming.de/", + "TokenExpireTime": 1, + "RefreshTokenExpireTime": 7 + }, + "DiscordAuthentication": { + "ClientSecret": "VVdRZTg1SnFxUExCNmhzU1RZY05mTHV5TmVaV0NkUmc=", + "RedirectURL": "https://kdb-test.keksdose-gaming.de/auth/register", + "Scope": [ + "identify", + "email" + ], + "TokenURL": "https://discordapp.com/api/oauth2/token", + "AuthURL": "https://discordapp.com/api/oauth2/authorize" + }, + "Frontend": { + "URL": "https://kdb-test.keksdose-gaming.de/" + }, + "EMailClientSettings": { + "Host": "mail.sh-edraft.de", + "Port": "587", + "UserName": "kruemmelmonster@sh-edraft.de", + "Credentials": "YjAwT3tPSVspezdadExdOEkoV3M3XiNb" + } +} \ No newline at end of file