Skip to content

Commit

Permalink
nginx: Enable HTTP/3
Browse files Browse the repository at this point in the history
Close #16
  • Loading branch information
JGoutin committed Aug 16, 2024
1 parent c108e65 commit 2adc513
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/nginx/tasks/firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
with_items:
- http
- https
- http3

- name: Ensure admin firewalld zone allow HTTP/HTTPS
ansible.posix.firewalld:
Expand All @@ -58,4 +59,5 @@
with_items:
- http
- https
- http3
when: common_trusted_firewalld_source is defined
8 changes: 6 additions & 2 deletions roles/nginx/templates/nginx-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ server {
# https://ssl-config.mozilla.org/#server=nginx&config=modern
# ==================================

listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 quic reuseport;
listen 443 ssl;
listen [::]:443 quic reuseport;
listen [::]:443 ssl;
add_header Alt-Svc 'h3=":443"; ma=86400';
http2 on;

# certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
ssl_certificate {{ _tls_crt }};
Expand Down

0 comments on commit 2adc513

Please sign in to comment.