_configuration.tpl 870 B

123456789101112131415161718192021222324252627282930
  1. {{- define "logseq.configuration" -}}
  2. configmap:
  3. nginx-config:
  4. enabled: true
  5. data:
  6. nginx.conf: |
  7. server {
  8. {{- if .Values.logseqNetwork.certificateID }}
  9. listen {{ .Values.logseqNetwork.webPort }} ssl;
  10. ssl_certificate /etc/nginx/certs/tls.crt;
  11. ssl_certificate_key /etc/nginx/certs/tls.key;
  12. {{- else }}
  13. listen {{ .Values.logseqNetwork.webPort }};
  14. {{- end }}
  15. error_page 500 502 503 504 /50x.html;
  16. location = /50x.html {
  17. root /usr/share/nginx/html;
  18. }
  19. location / {
  20. root /usr/share/nginx/html;
  21. index index.html index.htm;
  22. }
  23. location /health {
  24. return 200;
  25. }
  26. }
  27. {{- end -}}