diff --git a/charts/fairspace/templates/project/configmap-pluto.yaml b/charts/fairspace/templates/project/configmap-pluto.yaml index b8974942b..3b912e7a7 100644 --- a/charts/fairspace/templates/project/configmap-pluto.yaml +++ b/charts/fairspace/templates/project/configmap-pluto.yaml @@ -25,64 +25,64 @@ data: {{ toYaml (index .Values.fairspace.services ) | indent 8 }} icons: {{ toYaml (index .Values.fairspace.icons ) | indent 8 }} - management: - endpoint: - health: - probes: - enabled: true + management: + endpoint: + health: + probes: + enabled: true - logging: - level: - root: {{ .Values.pluto.logLevel }} + logging: + level: + root: {{ .Values.pluto.logLevel }} - server: - error: - whitelabel: - enabled: false - max-http-header-size: 65535 + server: + error: + whitelabel: + enabled: false + max-http-header-size: 65535 - security: - oidc: - redirect-after-logout-url: {{ template "fairspace.scheme" . }}://{{ .Values.fairspace.ingress.domain }}/login - clientId: {{ .Values.external.keycloak.clientId }} - clientSecret: '{{ .Values.external.keycloak.clientSecret }}' + security: + oidc: + redirect-after-logout-url: {{ template "fairspace.scheme" . }}://{{ .Values.fairspace.ingress.domain }}/login + clientId: {{ .Values.external.keycloak.clientId }} + clientSecret: '{{ .Values.external.keycloak.clientSecret }}' - spring: - web: - resources: - static-locations: classpath:static,file:/opt/mercury - cloud: - gateway: - routes: + spring: + web: + resources: + static-locations: classpath:static,file:/opt/mercury + cloud: + gateway: + routes: {{ if .Values.pluto.backends.storageRoutes }} -{{ toYaml .Values.pluto.backends.storageRoutes | indent 12 }} +{{ toYaml .Values.pluto.backends.storageRoutes | indent 10 }} {{ end }} - - id: saturn-post-request-size - uri: {{ .Values.pluto.backends.saturn | default "http://localhost:8090/api/" }} - predicates: - - Method=POST - - Path=/api/** - filters: - - name: RequestSize - args: - maxSize: {{ .Values.pluto.maxFileSize }} - - id: saturn - uri: {{ .Values.pluto.backends.saturn | default "http://localhost:8090"}} - predicates: - - Path=/api/** - default-filters: - - RemoveRequestHeader=Pragma X-Frame-Options X-Content-Type-Options X-XSS-Protection X-Permitted-Cross-Domain-Policies Origin - # Including the ORIGIN header would trigger CORS filtering downstream, but Pluto is already doing the filtering. - - name: Retry - args: - methods: GET,PUT,POST,DELETE - exceptions: - - reactor.netty.http.client.PrematureCloseException - httpclient: - connect-timeout: {{ .Values.pluto.connectTimeoutMillis }} - response-timeout: {{ .Values.pluto.responseTimeoutMillis }} - pool: - max-idle-time: 20s + - id: saturn-post-request-size + uri: {{ .Values.pluto.backends.saturn | default "http://localhost:8090/api/" }} + predicates: + - Method=POST + - Path=/api/** + filters: + - name: RequestSize + args: + maxSize: {{ .Values.pluto.maxFileSize }} + - id: saturn + uri: {{ .Values.pluto.backends.saturn | default "http://localhost:8090"}} + predicates: + - Path=/api/** + default-filters: + - RemoveRequestHeader=Pragma X-Frame-Options X-Content-Type-Options X-XSS-Protection X-Permitted-Cross-Domain-Policies Origin + # Including the ORIGIN header would trigger CORS filtering downstream, but Pluto is already doing the filtering. + - name: Retry + args: + methods: GET,PUT,POST,DELETE + exceptions: + - reactor.netty.http.client.PrematureCloseException + httpclient: + connect-timeout: {{ .Values.pluto.connectTimeoutMillis }} + response-timeout: {{ .Values.pluto.responseTimeoutMillis }} + pool: + max-idle-time: 20s # Add external svg icons to the configmap data {{- range $key, $value := .Values.svgicons }} diff --git a/charts/fairspace/templates/project/configmap-saturn.yaml b/charts/fairspace/templates/project/configmap-saturn.yaml index 514ad10d9..3b7117511 100644 --- a/charts/fairspace/templates/project/configmap-saturn.yaml +++ b/charts/fairspace/templates/project/configmap-saturn.yaml @@ -31,7 +31,7 @@ data: blobStorePath: "/data/saturn/files/blobs" viewDatabase: enabled: true - mvRefreshOnStartRequired: true + mvRefreshOnStartRequired: {{ default true .Values.saturn.mvRefreshOnStartRequired }} features: {{ toYaml .Values.fairspace.features | indent 6 }} {{ if has "ExtraStorage" .Values.fairspace.features }}