extensions-cache-configmap.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{- if .Values.extensions.cache.enabled }}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ .Release.Name }}-extensions-cache
  6. namespace: {{ .Release.Namespace }}
  7. {{- if .Values.qutePreprocess }}#comment.preprocess.start{{- end }}
  8. data:
  9. nginx.conf: |
  10. pid /var/run/nginx.pid;
  11. error_log /dev/stdout;
  12. error_log /var/log/nginx/error.log;
  13. events{
  14. }
  15. http {
  16. include /etc/nginx/mime.types;
  17. default_type application/octet-stream;
  18. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  19. '$status $body_bytes_sent "$http_referer" '
  20. '"$http_user_agent" "$http_x_forwarded_for"';
  21. access_log /dev/stdout main;
  22. access_log /var/log/nginx/access.log main;
  23. sendfile on;
  24. keepalive_timeout 65;
  25. include /etc/nginx/conf.d/*.conf;
  26. }
  27. stackgres-operator-extensions-cache.conf: |
  28. server {
  29. server_name localhost;
  30. listen 8080;
  31. root /opt/app-root/src;
  32. location / {
  33. try_files /$host$uri =404;
  34. }
  35. }
  36. extensions-cache-conciliator.sh: |
  37. {{ .Files.Get "extensions-cache-conciliator.sh" | indent 4 }}
  38. {{- if .Values.qutePreprocess }}#comment.preprocess.end{{- end }}
  39. {{- end }}