Skip to content
Snippets Groups Projects
Commit 7c9f4563 authored by SaikrishnaTadepalli's avatar SaikrishnaTadepalli
Browse files

created build

parent 9d6573c7
No related branches found
No related tags found
1 merge request!3created build
gradlew 100644 → 100755
File mode changed from 100644 to 100755
......@@ -18,9 +18,9 @@ fun main(args: Array<String>) {
}
fun Application.module() {
val mongoUserName: String = System.getenv("MONGODB_USERNAME")
val mongoPWD = System.getenv("MONGODB_PWD")
val mongoDBName = System.getenv("MONGODB_NAME")
val mongoUserName: String = System.getenv("MONGODB_USERNAME")?: "backend"
val mongoPWD = System.getenv("MONGODB_PWD")?: "3Vdek4PjNBEhu00O"
val mongoDBName = System.getenv("MONGODB_NAME")?: "db1"
val db = KMongo.createClient(
connectionString = "mongodb+srv://$mongoUserName:$mongoPWD@cluster0.3mqtfy8.mongodb.net/$mongoDBName?retryWrites=true&w=majority"
......@@ -34,7 +34,7 @@ fun Application.module() {
issuer = environment.config.property("jwt.issuer").getString(),
audience = environment.config.property("jwt.audience").getString(),
expiresIn = 365L * 1000L * 60L * 24L,
secret = System.getenv("JWT_SECRET")
secret = System.getenv("JWT_SECRET")?: "JF8sFEEzZw"
)
val hashingService = SHA256HashingService()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment