Merge pull request #8 from kazu634/quic-support

Quick suppot: add header.
This commit is contained in:
Kazuhiro MUSASHI 2023-06-04 20:43:28 +09:00 committed by GitHub
commit dc51cb8189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,9 @@ server {
http2_push https://embedr.flickr.com/assets/client-code.js;
http2_push https://platform.twitter.com/widgets.js;
# used to advertise the availability of HTTP/3
add_header Alt-Svc 'h3=":443"; ma=86400';
if (-e "/tmp/maintenance") {
return 503;
}

View File

@ -38,6 +38,9 @@ server {
error_page 405 =200 $uri;
location / {
# used to advertise the availability of HTTP/3
add_header Alt-Svc 'h3=":443"; ma=86400';
try_files $uri $uri/ /index.html;
}
}