Skip to content

Commit

Permalink
Add missing Nginx configuration (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Martinez Gotor authored and absoludity committed Nov 21, 2019
1 parent f480eca commit dfaccd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chart/kubeapps/templates/kubeapps-frontend-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ data:
location ~* /api/chartsvc {
rewrite /api/chartsvc/(.*) /chartsvc/$1 break;
rewrite /api/chartsvc /chartsvc break;
{{- if .Values.frontend.proxypassAccessTokenAsBearer }}
# Google Kubernetes Engine requires the access_token as the Bearer when talking to the k8s api server.
proxy_set_header Authorization "Bearer $http_x_forwarded_access_token";
{{- end }}
proxy_pass http://{{ template "kubeapps.tiller-proxy.fullname" . }}:{{ .Values.tillerProxy.service.port }};
}
Expand Down

0 comments on commit dfaccd0

Please sign in to comment.