Skip to content

Commit

Permalink
✨ api-admin running
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Nov 25, 2024
1 parent f0b0ed4 commit 27330fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/api-admin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
ctx := context.Background()

// Set up MongoDB
db := mongo.New(&mongo.Config{URI: os.Getenv("DB_URL"), Database: "eventrunner"})
db := mongo.New(&mongo.Config{URI: os.Getenv("DSN"), Database: "eventrunner"})

// setup a context with a timeout
dbCtx, cancel := context.WithTimeout(ctx, dbConnectTimeout)
Expand Down
1 change: 0 additions & 1 deletion cmd/api/configs/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ HTTP_PORT=8200

LOG_LEVEL=DEBUG

JWKS_SERVER=https://affectionate-brattain-fl0yahcycw.projects.oryapis.com/.well-known/jwks.json
DSN=mongodb://er-mongodb.mongo.svc.cluster.local:27017
ORY_SCHEMA_ID=
DB_HOST=localhost
Expand Down
3 changes: 2 additions & 1 deletion cmd/api/configs/.staging.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ HTTP_PORT=8200
LOG_LEVEL=DEBUG

ORY_PROJECT_URL=http://localhost:4455
DB_URL=mongodb://mongodb.svc.cluster.local:27017
DB_URL=mongodb://er-mongodb.mongo.svc.cluster.local:27017
DSN=mongodb://er-mongodb.mongo.svc.cluster.local:27017
DB_NAME=eventrunner
4 changes: 3 additions & 1 deletion k8s/api-admin/base/api-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ spec:
- name: ghcr-io-cred
containers:
- name: api-admin
image: ghcr.io/carverauto/api-admin:v0.0.04
image: ghcr.io/carverauto/api-admin:v0.0.05
imagePullPolicy: Always
env:
- name: DSN
value: "mongodb://er-mongodb.mongo.svc.cluster.local:27017"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 27330fc

Please sign in to comment.