1
0
angie-conv-image/angie/conf.dist/http-ssl.conf.j2

28 lines
718 B
Plaintext
Raw Normal View History

2024-09-17 14:11:00 +03:00
include conf.d/ssl/*.conf;
## lowering from 16k to 4k to improve time-to-first-byte
ssl_buffer_size 4k;
{%- if env.NGX_HTTP_SSL_PROFILE %}
include snip.d/ssl-{{ env.NGX_HTTP_SSL_PROFILE }};
{%- endif %}
{%- if j2cfg.tls.stapling.enable %}
ssl_stapling on;
{%- if j2cfg.tls.stapling.verify %}
ssl_stapling_verify on;
{%- else %}
ssl_stapling_verify off;
{%- endif %}
{%- if j2cfg.tls.stapling.file %}
{#- TODO: precise quotation #}
ssl_stapling_file {{ j2cfg.tls.stapling.file.__repr__() }};
{%- endif %}
{%- if j2cfg.tls.stapling.responder %}
{#- TODO: precise quotation #}
ssl_stapling_responder {{ j2cfg.tls.stapling.responder.__repr__() }};
{%- endif %}
{%- else %}
ssl_stapling off;
{%- endif %}