Add http2 to all listen directives

Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Eric Nemchik 2023-05-31 14:31:52 +00:00
commit 0528b56e12
196 changed files with 601 additions and 601 deletions

View file

@ -1,19 +1,19 @@
## Version 2023/05/08
## Version 2023/05/31
# this is for nodes, not your actual panel
# make sure you set your node to use 443 as its API port
# make sure that your pterodactylnode container is named pterodactylnode
# make sure that your dns has a cname set for pterodactylnode
server {
listen 443 ssl;
listen [::]:443 ssl;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name pterodactylnode.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth (requires ldap-location.conf in the location block)
#include /config/nginx/ldap-server.conf;
@ -37,7 +37,7 @@ server {
# enable for Authentik (requires authentik-server.conf in the server block)
#include /config/nginx/authentik-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app pterodactylnode;
@ -46,7 +46,7 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/pterodactylnode)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
@ -56,4 +56,4 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
}