operator-nginx-configmap.yaml 973 B

12345678910111213141516171819202122232425262728
  1. {{ if and .Values.developer.externalOperatorIp .Values.developer.externalOperatorPort }}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ .Release.Name }}-nginx
  6. namespace: {{ .Release.Namespace }}
  7. {{- if .Values.qutePreprocess }}#comment.preprocess.start{{- end }}
  8. data:
  9. stackgres-operator.conf: |
  10. server {
  11. server_name localhost;
  12. listen 9443 ssl;
  13. ssl_certificate /etc/operator/certs/server.crt;
  14. ssl_certificate_key /etc/operator/certs/root.key;
  15. location ~ ^/stackgres {
  16. proxy_redirect off;
  17. proxy_set_header Host $host;
  18. proxy_set_header X-Real-IP $remote_addr;
  19. proxy_set_header X-Forwarded-Host $host;
  20. proxy_set_header X-Forwarded-Server $host;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. proxy_pass http://{{ .Release.Name }}-api:8080;
  23. }
  24. }
  25. {{- if .Values.qutePreprocess }}#comment.preprocess.end{{- end}}
  26. {{- end }}