diff --git a/scripts/helmcharts/openreplay/charts/assist-api/values.yaml b/scripts/helmcharts/openreplay/charts/assist-api/values.yaml index cd93dba51..dde9aba35 100644 --- a/scripts/helmcharts/openreplay/charts/assist-api/values.yaml +++ b/scripts/helmcharts/openreplay/charts/assist-api/values.yaml @@ -44,12 +44,6 @@ podSecurityContext: # runAsNonRoot: true # runAsUser: 1000 -service: - type: ClusterIP - ports: - http: 8080 - metrics: 8888 - serviceMonitor: enabled: true additionalLabels: @@ -62,21 +56,34 @@ serviceMonitor: scheme: http scrapeTimeout: 10s +service: + type: ClusterIP + ports: + http: 8080 + metrics: 8888 + ingress: - enabled: false - className: "" - annotations: {} + enabled: true + className: "{{ .Values.global.ingress.controller.ingressClassResource.name }}" + annotations: + nginx.ingress.kubernetes.io/configuration-snippet: | + add_header X-Debug-Session-ID $http_sessionid; + add_header X-Debug-Session-Type "wss"; + + # CORS configuration + # We don't need the upstream header + proxy_hide_header Access-Control-Allow-Origin; + add_header 'Access-Control-Allow-Origin' $http_origin always; + add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always; + add_header 'Access-Control-Allow-Headers' 'sessionid, Content-Type, Authorization' always; + add_header 'Access-Control-Max-Age' 1728000; + add_header 'Content-Type' 'text/plain charset=UTF-8'; + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" - hosts: - - host: chart-example.local - paths: - - path: / - pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local + tls: + secretName: openreplay-ssl resources: {} # We usually recommend not to specify default resources and to leave this as a conscious