Skip to content

Commit

Permalink
Set default LF classic mongo creds for dev environments
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed May 28, 2024
1 parent b4e4061 commit 35bb468
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/LexBoxApi/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
"LfClassicConfig": {
"ConnectionString": "mongodb://localhost:27017",
"AuthSource": "admin",
"Username": "admin",
"Password": "pass"
},
"ForwardedHeadersOptions": {
"KnownNetworks": [
Expand Down
1 change: 1 addition & 0 deletions deployment/local-dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resources:
#- secrets.yaml
- ingress-deployment.yaml
- db-secrets.yaml
- lf-classic-secrets.yaml

components:
- ../init-repos
Expand Down
11 changes: 11 additions & 0 deletions deployment/local-dev/lf-classic-secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://kubernetes.io/docs/concepts/configuration/secret

apiVersion: v1
kind: Secret
metadata:
name: lf-mongo-auth
namespace: languagedepot
stringData:
MONGODB_AUTHSOURCE: 'admin'
MONGODB_USER: 'admin'
MONGODB_PASS: 'pass'

0 comments on commit 35bb468

Please sign in to comment.