Set http2 at http level

Ref: https://github.com/linuxserver/docker-baseimage-alpine-nginx/pull/167

Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Eric Nemchik 2024-05-29 08:17:43 -05:00
commit 4f72dd58bd
No known key found for this signature in database
229 changed files with 467 additions and 699 deletions

View file

@ -1,4 +1,4 @@
## Version 2023/05/31
## Version 2024/05/29
# make sure that your openvscode-server container is named openvscode-server
# make sure that your dns has a cname set for openvscode-server
# This conf allows accessing internal ports at `PORT` (http) or `PORTs` (https) as subdomain
@ -6,8 +6,7 @@
# Access https port 8080 at `https://8080s.openvscode-server.domain.url`
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen *:443 ssl;
server_name openvscode-server.*;
@ -49,8 +48,7 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen *:443 ssl;
server_name "~^(?<upstream_port>[0-9]{1,10})\.openvscode-server\..*$";
@ -91,8 +89,7 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen *:443 ssl;
server_name "~^(?<upstream_port>[0-9]{1,10})s\.openvscode-server\..*$";