-
-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global quic listen with reuseport for working QUIC responses.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# One global listen with reuseport is required for working QUIC+HTTP/3 responses | ||
{% if nginx_http3_enabled and sites_use_ssl and wordpress_default_site -%} | ||
server { | ||
# Listen on UDP for QUIC+HTTP/3 globally with reuseport | ||
listen [::]:443 quic default_server reuseport; | ||
listen 443 quic default_server reuseport; | ||
|
||
{% if wordpress_sites[wordpress_default_site].ssl.provider | default('manual') == 'manual' and wordpress_sites[wordpress_default_site].ssl.cert is defined and wordpress_sites[wordpress_default_site].ssl.key is defined -%} | ||
ssl_certificate {{ nginx_path }}/ssl/{{ wordpress_sites[wordpress_default_site].ssl.cert | basename }}; | ||
ssl_certificate_key {{ nginx_path }}/ssl/{{ wordpress_sites[wordpress_default_site].ssl.key | basename }}; | ||
|
||
{% elif wordpress_sites[wordpress_default_site].ssl.provider | default('manual') == 'letsencrypt' -%} | ||
ssl_certificate {{ nginx_path }}/ssl/letsencrypt/{{ wordpress_default_site }}-bundled.cert; | ||
ssl_certificate_key {{ nginx_path }}/ssl/letsencrypt/{{ wordpress_default_site }}.key; | ||
|
||
{% elif wordpress_sites[wordpress_default_site].ssl.provider | default('manual') == 'self-signed' -%} | ||
ssl_certificate {{ nginx_path }}/ssl/{{ wordpress_default_site }}.cert; | ||
ssl_trusted_certificate {{ nginx_path }}/ssl/{{ wordpress_default_site }}.cert; | ||
ssl_certificate_key {{ nginx_path }}/ssl/{{ wordpress_default_site }}.key; | ||
|
||
{% endif -%} | ||
} | ||
{% endif -%} |