Update pterodactylnode.subdomain.conf.sample

Co-authored-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Jack D 2023-05-20 00:52:10 +01:00 committed by GitHub
parent a88a35fcf2
commit 6098392eb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,17 +23,6 @@ server {
# enable for Authentik (requires authentik-location.conf in the location block) # enable for Authentik (requires authentik-location.conf in the location block)
#include /config/nginx/authentik-server.conf; #include /config/nginx/authentik-server.conf;
location ~ ^\/api\/servers\/(?<serverid>.*)?\/ws$ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app pterodactylnode;
set $upstream_port 443;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port/api/servers/$serverid/ws;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / { location / {
# enable the next two lines for http auth # enable the next two lines for http auth