Skip to content

Commit

Permalink
update postgres config, downgrade uvicorn
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Oct 4, 2024
1 parent 27edb2f commit 6755c66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: trustdidweb-server-py
icon: https://identity.foundation/trustdidweb/tdw.jpg
description: An api server to register and serve trusted web dids.
type: application
version: 0.0.2
version: 0.0.3
appVersion: "v0.0.2"

dependencies:
Expand Down
9 changes: 2 additions & 7 deletions charts/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ spec:
value: {{ .Values.server.environment.ENDORSER_MULTIKEY }}
- name: SECRET_KEY
value: {{ .Values.server.environment.SECRET_KEY }}
# - name: POSTGRES_PASSWORD
# valueFrom:
# secretKeyRef:
# name: trustdidweb-server-py-postgresql
# key: password
# - name: POSTGRES_URI
# value: postgres://{{ .Values.postgresql.auth.username }}:$(POSTGRES_PASSWORD)@{{ include "global.postgresql.fullname" . }}:{{ .Values.postgresql.primary.service.ports.postgresql }}
- name: POSTGRES_URI
value: postgres://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ include "global.postgresql.fullname" . }}:{{ .Values.postgresql.primary.service.ports.postgresql }}
ports:
- name: api
containerPort: {{ .Values.server.service.apiPort }}
Expand Down
26 changes: 7 additions & 19 deletions charts/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
nameOverride: "trustdidweb-server-py"
fullnameOverride: "trustdidweb-server-py"
nameOverride: "tdw-server"
fullnameOverride: "tdw-server"
ingressSuffix: ""

selectorLabels: {}
Expand All @@ -10,9 +10,6 @@ server:
repository: ghcr.io/decentralized-identity/trustdidweb-server-py
pullPolicy: IfNotPresent
pullSecrets: []
tag: 0.0.4

host: ""

replicaCount: 1

Expand All @@ -23,7 +20,7 @@ server:
service:
type: ClusterIP
apiPort: 8000
servicePort: 80
servicePort: 8000

resources:
limits:
Expand All @@ -37,24 +34,15 @@ server:
ingress:
podSelector: {}

environment:
DOMAIN: ""
SECRET_KEY: ""
ENDORSER_MULTIKEY: ""

postgresql:
enabled: true
fullnameOverride: "trustdidweb-server-py-postgresql"
nameOverride: "trustdidweb-server-py-postgresql"
fullnameOverride: "tdw-server-postgresql"
nameOverride: "tdw-server-postgresql"
architecture: standalone
auth:
enablePostgresUser: true
existingSecret: ""
secretKeys:
adminPasswordKey: admin-password
userPasswordKey: database-password
database: trustdidweb-server-py
username: trustdidweb-server-py
database: "tdw-server"
username: "tdw-server"

## PostgreSQL Primary parameters
primary:
Expand Down
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ sniffio==1.3.1
starlette==0.38.6
typing-validation==1.2.11.post4
typing_extensions==4.12.2
uvicorn==0.31.0
uvicorn==0.29.0
validators==0.34.0

0 comments on commit 6755c66

Please sign in to comment.