From b3b500a8eb702d9a84da463b4a46eaf16b74a19b Mon Sep 17 00:00:00 2001 From: Jack D <77021733+GetLifty@users.noreply.github.com> Date: Sat, 20 May 2023 00:52:15 +0100 Subject: [PATCH] Update pterodactylnode.subdomain.conf.sample Co-authored-by: Eric Nemchik --- pterodactylnode.subdomain.conf.sample | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pterodactylnode.subdomain.conf.sample b/pterodactylnode.subdomain.conf.sample index c73a9a7..02803f2 100644 --- a/pterodactylnode.subdomain.conf.sample +++ b/pterodactylnode.subdomain.conf.sample @@ -46,4 +46,14 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + + location ~ (/pterodactylnode)?/api { + 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; + + } } \ No newline at end of file