Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs346-proj
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Saikrishna Tadepalli
cs346-proj
Commits
7c9f4563
Commit
7c9f4563
authored
1 year ago
by
SaikrishnaTadepalli
Browse files
Options
Downloads
Patches
Plain Diff
created build
parent
9d6573c7
No related branches found
No related tags found
1 merge request
!3
created build
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gradlew
+0
-0
0 additions, 0 deletions
gradlew
src/main/kotlin/com/backend/Application.kt
+4
-4
4 additions, 4 deletions
src/main/kotlin/com/backend/Application.kt
with
4 additions
and
4 deletions
gradlew
100644 → 100755
+
0
−
0
View file @
7c9f4563
File mode changed from 100644 to 100755
This diff is collapsed.
Click to expand it.
src/main/kotlin/com/backend/Application.kt
+
4
−
4
View file @
7c9f4563
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment