Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genai/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def custom_openapi():

app.add_middleware(
CORSMiddleware,
allow_origins=[CLIENT_URL, SERVER_URL],
allow_origins=[CLIENT_URL, SERVER_URL, "http://localhost:3000", "http://localhost:8000"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down
10 changes: 8 additions & 2 deletions infrastructure/whiteboard-app/production.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ client:
replicaCount: 1
env:
- name: KEYCLOAK_CLIENT_SECRET
value: SXiMvr1GG10bk2J63ODZC9SOaoAZ4dbe
valueFrom:
secretKeyRef:
name: keycloak-client-secret
key: keycloak-client-secret
- name: NEXTAUTH_URL
value: https://whiteboard.student.k8s.aet.cit.tum.de/api/auth/
- name: NEXTAUTH_SECRET
value: feZJWB3mcQ93VBmqHKQI5er5NEIxcDPb3wtT/KaLB9s=
valueFrom:
secretKeyRef:
name: next-auth-secret
key: next-auth-secret
- name: KEYCLOAK_CLIENT_ID
value: webclient
- name: KEYCLOAK_ISSUER
Expand Down
10 changes: 8 additions & 2 deletions infrastructure/whiteboard-app/pullrequest.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ client:
replicaCount: 1
env:
- name: KEYCLOAK_CLIENT_SECRET
value: SXiMvr1GG10bk2J63ODZC9SOaoAZ4dbe
valueFrom:
secretKeyRef:
name: keycloak-client-secret
key: keycloak-client-secret
- name: NEXTAUTH_URL
value: 'https://{{ .Values.client.url }}/api/auth/'
- name: NEXTAUTH_SECRET
value: feZJWB3mcQ93VBmqHKQI5er5NEIxcDPb3wtT/KaLB9s=
valueFrom:
secretKeyRef:
name: next-auth-secret
key: next-auth-secret
- name: KEYCLOAK_CLIENT_ID
value: webclient
- name: KEYCLOAK_ISSUER
Expand Down
10 changes: 8 additions & 2 deletions infrastructure/whiteboard-app/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ client:
replicaCount: 1
env:
- name: KEYCLOAK_CLIENT_SECRET
value: SXiMvr1GG10bk2J63ODZC9SOaoAZ4dbe
valueFrom:
secretKeyRef:
name: keycloak-client-secret
key: keycloak-client-secret
- name: NEXTAUTH_URL
value: https://staging.whiteboard.student.k8s.aet.cit.tum.de/api/auth/
- name: NEXTAUTH_SECRET
value: feZJWB3mcQ93VBmqHKQI5er5NEIxcDPb3wtT/KaLB9s=
valueFrom:
secretKeyRef:
name: next-auth-secret
key: next-auth-secret
- name: KEYCLOAK_CLIENT_ID
value: webclient
- name: KEYCLOAK_ISSUER
Expand Down
27 changes: 27 additions & 0 deletions server/bin/main/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
server:
port: 9091

springdoc:
swagger-ui:
oauth2-redirect-url: ${SERVER_URL}/swagger-ui/oauth2-redirect.html

spring:
security:
oauth2:
resourceserver:
jwt:
issuer-uri: ${IDP_INTERNAL_URI}
jwk-set-uri: ${IDP_INTERNAL_URI}/protocol/openid-connect/certs
datasource:
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
username: ${DB_USER}
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: none
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
flyway:
enabled: true
validate-on-migrate: true
Loading