Skip to content

Commit b3eb51d

Browse files
authored
feat: add custom headers support for ingress configuration (#393)
1 parent c0635ab commit b3eb51d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

helm/templates/configmap.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{- if .Values.ingress.headers -}}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: ingress-nginx-custom-headers
6+
labels:
7+
{{- include "helm-chart.labels" . | nindent 4 }}
8+
data: {{ .Values.ingress.headers | nindent 2 }}
9+
{{- end }}

helm/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ ingress:
2525
className: cilium
2626
annotations:
2727
kubernetes.io/tls-acme: "true"
28-
nginx.ingress.kubernetes.io/configuration-snippet: |
29-
more_set_headers "Content-Security-Policy: default-src 'self'; child-src 'self'; connect-src 'self' https://api-iam.intercom.io https://api.bako.global https://api.bako.global/socket.io https://api-js.mixpanel.com https://api.web3modal.org https://app.sentio.xyz https://hermes.pyth.network https://indexer.hyperindex.xyz https://mainnet.fuel.network https://nexus-websocket-a.intercom.io https://region1.google-analytics.com https://relay.walletconnect.org https://spark-candles.v12.trade https://testnet.fuel.network https://unleash.v12.trade https://www.google-analytics.com wss://api.bako.global/socket.io wss://indexer.hyperindex.xyz wss://nexus-websocket-a.intercom.io wss://relay.walletconnect.com wss://relay.walletconnect.org; font-src 'self' https://fonts.gstatic.com data:; frame-src 'self' https://e.widgetbot.io https://intercom.io https://s.tradingview.com https://verify.walletconnect.com https://widget.intercom.io https://widgetbot.io blob:; img-src 'self' data:; manifest-src 'self'; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://js.intercomcdn.com https://s3.tradingview.com https://widget.intercom.io https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; upgrade-insecure-requests; worker-src 'self'; block-all-mixed-content;";
28+
nginx.ingress.kubernetes.io/custom-headers: spark-frontend/ingress-nginx-custom-headers
29+
headers: |
30+
Content-Security-Policy: default-src 'self'; child-src 'self'; connect-src 'self' https://api-iam.intercom.io https://api.bako.global https://api.bako.global/socket.io https://api-js.mixpanel.com https://api.web3modal.org https://app.sentio.xyz https://hermes.pyth.network https://indexer.hyperindex.xyz https://mainnet.fuel.network https://nexus-websocket-a.intercom.io https://region1.google-analytics.com https://relay.walletconnect.org https://spark-candles.v12.trade https://testnet.fuel.network https://unleash.v12.trade https://www.google-analytics.com wss://api.bako.global/socket.io wss://indexer.hyperindex.xyz wss://nexus-websocket-a.intercom.io wss://relay.walletconnect.com wss://relay.walletconnect.org; font-src 'self' https://fonts.gstatic.com data:; frame-src 'self' https://e.widgetbot.io https://intercom.io https://s.tradingview.com https://verify.walletconnect.com https://widget.intercom.io https://widgetbot.io blob:; img-src 'self' data:; manifest-src 'self'; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://js.intercomcdn.com https://s3.tradingview.com https://widget.intercom.io https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; upgrade-insecure-requests; worker-src 'self'; block-all-mixed-content;
3031
3132
resources:
3233
requests:

0 commit comments

Comments
 (0)