Skip to content

Commit

Permalink
Also listen for HTTP3
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 17, 2024
1 parent 57cf5b6 commit c44bbba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/executor/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ class NginxExecutor {
node._add('http2', "on");
}
if (httpconf == 3) {
node._add('listen', info.ip ? info.ip + ":443 quic reuseport" : "443 quic reuseport");
node._add('listen', (info.ip6 || '[::]') + ":443 quic reuseport");
node._add('http2', "on");
node._add('http3', "on");
node._add('add_header', `Alt-Svc 'h3=":443"; ma=86400'`);
}
Expand Down

0 comments on commit c44bbba

Please sign in to comment.