Browse Source

config fix

pull/1/head
Slixe 1 year ago
parent
commit
94f9d88c62
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      src/main/java/fr/slixe/benchmarks/Main.java
  2. +1
    -0
      src/main/resources/config.default.json

+ 2
- 2
src/main/java/fr/slixe/benchmarks/Main.java View File

@@ -31,7 +31,7 @@ public class Main
String sessionSecret = config.get("secret");
if (sessionSecret.isEmpty() || sessionSecret.length() < 6) {
log.error("The secret key for Session Manager is empty or low!! Exiting...");
log.error("The secret key for Session Manager is empty or too low!! Exiting...");
return;
}
((SessionManager) paladin.getSessionManager()).init(paladin, sessionSecret);
@@ -41,7 +41,7 @@ public class Main
log.info("Enabling SSL...");
String filePath = config.get("keystoreFile");
char[] secret = config.get("secret").toCharArray();
char[] secret = config.get("keystorePassword").toCharArray();
File file = new File(filePath);
if (!file.exists()) {


+ 1
- 0
src/main/resources/config.default.json View File

@@ -2,5 +2,6 @@
"port": 8080,
"enableSSL": false,
"keystoreFile": "",
"keystorePassword": "",
"secret": ""
}

Loading…
Cancel
Save