Skip to content

Commit

Permalink
fix: update NGINX templates to set Alt-Svc header for QUIC negotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Nov 27, 2024
1 parent addf461 commit f07b2ff
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/podman/images/nginx/runtimes/templates/app.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ server {
# error
error_page 404 /index.php;

# add Alt-Svc header to negotiate HTTP/3.
add_header Alt-Svc 'h3-29=":443"; ma=2592000, h3=":443"; ma=2592000';

# service worker
add_header Service-Worker-Allowed /;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ server {
# security
include /etc/nginx/config/security.conf;

# set Alt-Svc header to negotiate quic
add_header Alt-Svc 'h3-29=":8082"; ma=2592000, h3=":8082"; ma=2592000';

# index
index index.html;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ server {
# security
include /etc/nginx/config/security.conf;

# set Alt-Svc header to negotiate quic
add_header Alt-Svc 'h3-29=":1935"; ma=2592000, h3=":1935"; ma=2592000';

# index
index index.html;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ server {
# security
include /etc/nginx/config/security.conf;

# set Alt-Svc header to negotiate quic
add_header Alt-Svc 'h3-29=":1936"; ma=2592000, h3=":1936"; ma=2592000';

# index
index index.html;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ server {
# security
include /etc/nginx/config/security.conf;

# set Alt-Svc header to negotiate quic
add_header Alt-Svc 'h3-29=":4443"; ma=2592000, h3=":4443"; ma=2592000';

# index
index index.html;

Expand Down
3 changes: 3 additions & 0 deletions docs/podman/images/nginx/runtimes/templates/vod.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ server {
# security
include /etc/nginx/config/security.conf;

# set Alt-Svc header to negotiate quic
add_header Alt-Svc 'h3-29=":8081"; ma=2592000, h3=":8081"; ma=2592000';

# index
index index.html;

Expand Down

0 comments on commit f07b2ff

Please sign in to comment.