Skip to content

Commit

Permalink
Move http3 includes into server_basic block.
Browse files Browse the repository at this point in the history
  • Loading branch information
strarsis committed Aug 27, 2024
1 parent f24fbde commit fc4239e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ server {
error_log {{ www_root }}/{{ item.key }}/logs/error.log;
{% endblock %}

{% if nginx_http3_enabled and ssl_enabled -%}
include includes/directive-only/http3-tune.conf;
include includes/directive-only/http3-negotiate.conf;
{% endif -%}

{% block server_basic -%}
root {{ www_root }}/{{ item.key }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }};
index index.php index.htm index.html;
Expand All @@ -43,6 +38,11 @@ server {
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#virtualbox
sendfile off;

{% endif -%}

{% if nginx_http3_enabled and ssl_enabled -%}
include includes/directive-only/http3-tune.conf;
include includes/directive-only/http3-negotiate.conf;
{% endif -%}
{% endblock -%}

Expand Down

0 comments on commit fc4239e

Please sign in to comment.