Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
schema-orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GraphPolaris
Microservices
schema-orchestrator
Commits
fb16f27d
Commit
fb16f27d
authored
1 year ago
by
Leonardo Christino
Browse files
Options
Downloads
Patches
Plain Diff
add redis password
parent
75771521
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#126918
failed
1 year ago
Stage: test
Stage: docker
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-0
1 addition, 0 deletions
Makefile
cmd/schema-orchestrator/main.go
+2
-3
2 additions, 3 deletions
cmd/schema-orchestrator/main.go
with
3 additions
and
3 deletions
Makefile
+
1
−
0
View file @
fb16f27d
...
@@ -39,6 +39,7 @@ develop:
...
@@ -39,6 +39,7 @@ develop:
$(
eval export
RABBIT_PORT :
=
5672
)
$(
eval export
RABBIT_PORT :
=
5672
)
$(
eval export
REDIS_ADDRESS :
=
localhost:6379
)
$(
eval export
REDIS_ADDRESS :
=
localhost:6379
)
$(
eval export
REDIS_PASSWORD :
=
DevOnlyPass
)
$(eval export JWT_SECRET
:
= 15D262E1FB339FFBD062FFB81C1831B2757FA3F1C02B7432A3E586A447FB7870)
$(eval export JWT_SECRET
:
= 15D262E1FB339FFBD062FFB81C1831B2757FA3F1C02B7432A3E586A447FB7870)
...
...
This diff is collapsed.
Click to expand it.
cmd/schema-orchestrator/main.go
+
2
−
3
View file @
fb16f27d
...
@@ -6,7 +6,6 @@ This program has been developed by students from the bachelor Computer Science a
...
@@ -6,7 +6,6 @@ This program has been developed by students from the bachelor Computer Science a
package
main
package
main
import
(
import
(
"fmt"
"os"
"os"
"schema-orchestrator/internal/drivers/rpcdriver"
"schema-orchestrator/internal/drivers/rpcdriver"
"schema-orchestrator/internal/drivers/webdriver"
"schema-orchestrator/internal/drivers/webdriver"
...
@@ -47,9 +46,9 @@ func main() {
...
@@ -47,9 +46,9 @@ func main() {
// Create keyvaluestore to get the queue with which clients are connected (websockets)
// Create keyvaluestore to get the queue with which clients are connected (websockets)
redisService
:=
keyvaluestore
.
NewDriver
()
redisService
:=
keyvaluestore
.
NewDriver
()
err
=
redisService
.
Connect
(
os
.
Getenv
(
"REDIS_ADDRESS"
))
err
=
redisService
.
Connect
(
os
.
Getenv
(
"REDIS_ADDRESS"
)
,
os
.
Getenv
(
"REDIS_PASSWORD"
)
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Panic
()
.
Msg
(
fmt
.
Sprintf
(
"keyValueStore error: %s"
,
err
)
)
log
.
Panic
()
.
Str
(
"address"
,
os
.
Getenv
(
"REDIS_ADDRESS"
))
.
AnErr
(
"Error"
,
err
)
.
Msg
(
"error connecting to redis"
)
}
else
{
}
else
{
log
.
Info
()
.
Str
(
"address"
,
os
.
Getenv
(
"REDIS_ADDRESS"
))
.
Msg
(
"successfully connected to redis"
)
log
.
Info
()
.
Str
(
"address"
,
os
.
Getenv
(
"REDIS_ADDRESS"
))
.
Msg
(
"successfully connected to redis"
)
}
}
...
...
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