Skip to content

Commit 415a4de

Browse files
committed
Move http3 config into server_basic block.
1 parent 6cab648 commit 415a4de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

roles/wordpress-setup/templates/wordpress-site.conf.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ server {
2323
error_log {{ www_root }}/{{ item.key }}/logs/error.log;
2424
{% endblock %}
2525

26-
{% if nginx_http3_enabled and ssl_enabled -%}
27-
include includes/directive-only/http3-tune.conf;
28-
include includes/directive-only/http3-negotiate.conf;
29-
{% endif -%}
30-
3126
{% block server_basic -%}
3227
root {{ www_root }}/{{ item.key }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }};
3328
index index.php index.htm index.html;
@@ -43,6 +38,11 @@ server {
4338
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#virtualbox
4439
sendfile off;
4540

41+
{% endif -%}
42+
43+
{% if nginx_http3_enabled and ssl_enabled -%}
44+
include includes/directive-only/http3-tune.conf;
45+
include includes/directive-only/http3-negotiate.conf;
4646
{% endif -%}
4747
{% endblock -%}
4848

0 commit comments

Comments
 (0)