bug: serving pterodactyl behind reverse proxy causes DOMException: The operation is insecure. #49

Closed
opened 2026-02-16 12:51:15 -05:00 by yindo · 3 comments
Owner

Originally created by @KenwoodFox on GitHub (Nov 13, 2023).

What happened?

I am getting an issue really similar to https://github.com/revoltchat/self-hosted/issues/10 , when loading a web page, I cant control or really.. do anything, server controls don't work and I get the The operation is insecure. error.

I think its because I'm hosting the pterodactyl server over HTTP, and then proxying it + adding my SSL cert afterward. I looked around, and the cause makes sense. because I actually am hosting the server over HTTP, it confuses the server and doesn't accept URLs beginning with https?

I'm thinking maybe I'll self sign some certs and just host it over https internally? it sounds kinda silly but i could do that? Is there an easier way? a config setting for when you're using a reverse proxy?

let me know if there is any more info i can provide.

Originally created by @KenwoodFox on GitHub (Nov 13, 2023). ### What happened? I am getting an issue really similar to https://github.com/revoltchat/self-hosted/issues/10 , when loading a web page, I cant control or really.. do anything, server controls don't work and I get the `The operation is insecure.` error. I think its because I'm hosting the pterodactyl server over HTTP, and then proxying it + adding my SSL cert afterward. I looked around, and the cause makes sense. because I actually am hosting the server over HTTP, it confuses the server and doesn't accept URLs beginning with https? I'm thinking maybe I'll self sign some certs and just host it over https internally? it sounds kinda silly but i could do that? Is there an easier way? a config setting for when you're using a reverse proxy? let me know if there is any more info i can provide.
yindo added the bug label 2026-02-16 12:51:15 -05:00
yindo closed this issue 2026-02-16 12:51:15 -05:00
Author
Owner

@KenwoodFox commented on GitHub (Nov 13, 2023):

Ah... using chrome produces some more helpful debug.
image
that IP, 10.85.3.103 is the direct connection to the wing. It cant do that, I'm surprised. I had thought I had forbidden that path.

Is this how pterodactyl works? Do I need to make my wings accessible externally too? that would certainly make it more involved for me to provide a subdomain for every wing..

new discovery: path is blocked, it couldn't connect even if it wanted to, that's a local IP.
image

@KenwoodFox commented on GitHub (Nov 13, 2023): Ah... using chrome produces some more helpful debug. ![image](https://github.com/revoltchat/self-hosted/assets/31870999/0ade6414-c2a9-4f2b-9f1f-5544cafef767) that IP, 10.85.3.103 is the direct connection to the wing. It cant do that, I'm surprised. I had thought I had forbidden that path. Is this how pterodactyl works? Do I need to make my wings accessible externally too? that would certainly make it more involved for me to provide a subdomain for every wing.. new discovery: path *is* blocked, it couldn't connect even if it wanted to, that's a local IP. ![image](https://github.com/revoltchat/self-hosted/assets/31870999/5304a323-7ab8-4175-bcbe-aa3a75cbeca7)
Author
Owner

@KenwoodFox commented on GitHub (Nov 13, 2023):

Behind proxy is set... but still same error? im struggling to setup a self-signed cert haha.. this is why i centralize all my certs on my reverse proxy in the first place, https://pterodox.com/guides/reverse-proxy.html#for-wings

@KenwoodFox commented on GitHub (Nov 13, 2023): Behind proxy is set... but still same error? im struggling to setup a self-signed cert haha.. this is why i centralize all my certs on my reverse proxy in the first place, https://pterodox.com/guides/reverse-proxy.html#for-wings
Author
Owner

@insertish commented on GitHub (Mar 28, 2024):

Sir, this is Revolt

Closing out for unrelated issue

@insertish commented on GitHub (Mar 28, 2024): Sir, this is Revolt Closing out for unrelated issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/self-hosted#49