nginx.conf.jinja 694 B

12345678910111213141516171819202122232425
  1. {% macro nginx_conf(values) -%}
  2. server {
  3. {%- if values.network.certificate_id %}
  4. listen {{ values.network.web_port.port_number }} ssl;
  5. ssl_certificate {{ values.consts.ssl_cert_path }};
  6. ssl_certificate_key {{ values.consts.ssl_key_path }};
  7. {%- else %}
  8. listen {{ values.network.web_port.port_number }};
  9. {%- endif %}
  10. error_page 500 502 503 504 /50x.html;
  11. location = /50x.html {
  12. root /usr/share/nginx/html;
  13. }
  14. location / {
  15. root /usr/share/nginx/html;
  16. index index.html index.htm;
  17. }
  18. location /health {
  19. return 200;
  20. }
  21. }
  22. {%- endmacro %}