Quick suppot: add header.
This commit is contained in:
parent
83567b06f8
commit
54f3aebf4d
|
@ -57,6 +57,9 @@ server {
|
||||||
http2_push https://embedr.flickr.com/assets/client-code.js;
|
http2_push https://embedr.flickr.com/assets/client-code.js;
|
||||||
http2_push https://platform.twitter.com/widgets.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") {
|
if (-e "/tmp/maintenance") {
|
||||||
return 503;
|
return 503;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,9 @@ server {
|
||||||
error_page 405 =200 $uri;
|
error_page 405 =200 $uri;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
# used to advertise the availability of HTTP/3
|
||||||
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||||
|
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue