Skip to content

Commit

Permalink
Change order of when http/2 is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb3r-Jak3 committed Nov 27, 2023
1 parent 8245ac8 commit 3c6c1ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nginxconfig/generators/conf/website.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ const httpsListen = (domain, global, ipPortPairs) => {
// HTTPS
config.push(['listen', `${ipPortV4} ssl${reusePortV4 ? ' reuseport' : ''}`]);

// HTTP/2
if (domain.https.http2.computed) config.push(['http2', 'on']);

// HTTP/3
if (domain.https.http3.computed) config.push(['listen', `${ipPortV4} http3`]);

Expand All @@ -93,6 +90,9 @@ const httpsListen = (domain, global, ipPortPairs) => {
if (domain.https.http3.computed) config.push(['listen', `${ipPortV6} http3`]);
}

// HTTP/2
if (domain.https.http2.computed) config.push(['http2', 'on']);

return config;
};

Expand Down

0 comments on commit 3c6c1ae

Please sign in to comment.