From 54f3aebf4dc22320d36648fbd29a895a53f38297 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 4 Jun 2023 20:42:07 +0900 Subject: [PATCH] Quick suppot: add header. --- sites-available/blog | 3 +++ sites-available/everun | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sites-available/blog b/sites-available/blog index ec75913..5def715 100644 --- a/sites-available/blog +++ b/sites-available/blog @@ -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; } diff --git a/sites-available/everun b/sites-available/everun index 1c42c0b..caebab8 100644 --- a/sites-available/everun +++ b/sites-available/everun @@ -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; } }