From 6c731e8c23e97085a412e93c1284d56b7df71099 Mon Sep 17 00:00:00 2001 From: "mateusz.bartkowiak" Date: Wed, 13 Nov 2019 09:59:30 +0100 Subject: [PATCH] CLAN6-155 | `coboardInit` task updated Admin.conf moved to `/mnt` Authenhication handler now reads from new location .gitignore updated --- .gitignore | 2 +- gradle/init.gradle.kts | 2 +- knotx/conf/routes/operations.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3358b47c3..1cf1b9b04 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ Thumbs.db *.jar /knotx/conf/jwt.conf -/knotx/conf/admins.conf +/mnt/admins.conf /mnt/*.json /mnt/*.backup diff --git a/gradle/init.gradle.kts b/gradle/init.gradle.kts index fc169cf77..858f95879 100644 --- a/gradle/init.gradle.kts +++ b/gradle/init.gradle.kts @@ -1,7 +1,7 @@ val configsToCopy = mapOf( "config.json" to "/mnt", "endpoints.json" to "/mnt", - "admins.conf" to "/knotx/conf", + "admins.conf" to "/mnt", "jwt.conf" to "/knotx/conf" ) diff --git a/knotx/conf/routes/operations.conf b/knotx/conf/routes/operations.conf index c5512c5c5..c5a9eb25f 100644 --- a/knotx/conf/routes/operations.conf +++ b/knotx/conf/routes/operations.conf @@ -25,7 +25,7 @@ routingOperations = ${routingOperations} [ name = login-handler config { include required(classpath("jwt.conf")) - include required(classpath("admins.conf")) + include required(classpath("data/admins.conf")) wrongUserMsg = "Please, enter correct Username" wrongPassMsg = "Please, enter valid Password" }