redis added to the config handler

master
Alex 2022-04-06 21:28:16 +02:00
parent 888e7f5870
commit 8e944a55e5
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,9 @@ public class ConfigHandler {
private String mongodbUsername;
private String mongodbPassword;
private String redisHost;
private String redisPort;
public void load() throws IOException, InvalidConfigurationException {
File file = new File(defaultConfigPath, "kraSettings.yaml");
@ -47,5 +50,8 @@ public class ConfigHandler {
mongodbDatabase = fileConfiguration.getString("mongodb.database");
mongodbUsername = fileConfiguration.getString("mongodb.username");
mongodbPassword = fileConfiguration.getString("mongodb.password");
redisHost = fileConfiguration.getString("redis.host");
redisPort = fileConfiguration.getString("redis.port");
}
}