Skip to content

Commit

Permalink
Add nginx and proxy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangarshanan authored and abhineshada committed Oct 30, 2023
1 parent c3d5c05 commit ba06a2d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helm/superset/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ CACHE_CONFIG = {
}
DATA_CACHE_CONFIG = CACHE_CONFIG

ENABLE_PROXY_FIX = True
PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 0, "x_prefix": 1}
SQLALCHEMY_DATABASE_URI = f"postgresql+psycopg2://{env('DB_USER')}:{env('DB_PASS')}@{env('DB_HOST')}:{env('DB_PORT')}/{env('DB_NAME')}"
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = env('SECRET_KEY', 'thisISaSECRET_1234')
Expand Down
10 changes: 10 additions & 0 deletions helm/superset/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ spec:
hostAliases: {{- toYaml . | nindent 6 }}
{{- end }}
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
ports:
- name: nginx
containerPort: 80
volumeMounts:
- name: superset-extra-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: nginx.conf
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down
2 changes: 1 addition & 1 deletion helm/superset/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.servicePort }}
targetPort: http
targetPort: 80
protocol: TCP
<<<<<<< HEAD
name: http
Expand Down

0 comments on commit ba06a2d

Please sign in to comment.