Skip to content

Commit 450eaed

Browse files
authored
Merge pull request #167 from linuxserver/http2-confs
Set http2 at http level
2 parents 9e27a14 + 1a5ef52 commit 450eaed

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

root/defaults/nginx/nginx.conf.sample

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Version 2023/04/13 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/master/root/defaults/nginx/nginx.conf.sample
1+
## Version 2024/05/27 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/master/root/defaults/nginx/nginx.conf.sample
22

33
### Based on alpine defaults
4-
# https://git.alpinelinux.org/aports/tree/main/nginx/nginx.conf?h=3.19-stable
4+
# https://git.alpinelinux.org/aports/tree/main/nginx/nginx.conf?h=3.20-stable
55

66
user abc;
77

@@ -69,6 +69,9 @@ http {
6969
'' close;
7070
}
7171

72+
# Enable http2 by default for all servers
73+
http2 on;
74+
7275
# Sets the path, format, and configuration for a buffered log write.
7376
access_log /config/log/nginx/access.log;
7477

root/defaults/nginx/site-confs/default.conf.sample

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
## Version 2024/03/06 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/master/root/defaults/nginx/site-confs/default.conf.sample
1+
## Version 2024/05/27 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/master/root/defaults/nginx/site-confs/default.conf.sample
22

33
server {
4-
listen 80 default_server;
5-
listen [::]:80 default_server;
6-
7-
listen 443 ssl http2 default_server;
8-
listen [::]:443 ssl http2 default_server;
4+
listen *:80 default_server;
5+
listen *:443 ssl default_server;
96

107
server_name _;
118

0 commit comments

Comments
 (0)