#Haproxy with Wings

26 messages · Page 1 of 1 (latest)

outer oxide
#

My websocket doesn't work, I tried many different configs but mine didn't work, what could be the problem?

wings cfg

  host: 0.0.0.0
  port: 8444

haproxy.cfg

    bind *:8444 ssl crt /etc/haproxy/certs/
    mode http
    option forwardfor

    use_backend wss_main

backend wss_main
    mode http
    option ssl-hello-chk
    option http-server-close
    timeout connect 5s
    timeout tunnel 1h
    server s1 123.123.123.123:8444 check

Panel: panel.mydomen.com
wing: n1.mydomen.com

shadow treeBOT
#

Please explain the issue you're experiencing in as much detail as possible. Preferably with error messages in a text format or paste link to logs. Nobody can assist you without information that helps to understand the issue. Help us help you. Messages such as "doesn't work" or "i need help" will most likely be ignored.

median hawk
outer oxide
ivory nacelle
#

thats not possible

outer oxide
# ivory nacelle thats not possible

technically it is possible, for example, the documentation states that it can be done via cloudflare
https://pterodactyl.io/wings/1.0/configuration.html#enabling-cloudflare-proxy

But I did not find any information on how to do something similar for my reverse proxy

knotty oyster
ivory nacelle
knotty oyster
#

Still wrong

ivory nacelle
outer oxide
#

cloudflare - cdn + reverse proxy in the basic version

I do the same thing, only by myself

knotty oyster
outer oxide
#

the problem is in the proxy configuration, but I don't understand where

knotty oyster
#

and grab this for me

shadow treeBOT
#

You'll need to grab error logs for Wings and share the link with us. The following command will help you collect the required information for debugging: sudo wings diagnostics

knotty oyster
#

Your haproxy is connecting to wings over http, but wings is listening for an SSL connection

outer oxide
#

this is very strange, i have wss specified

knotty oyster
#

What part of your haproxy config do you think makes it connect to wings using ssl ?

outer oxide
#

Thanks for your help. Your questions got me thinking.
The problem was that I was receiving wss on the proxy, but connected to wings via ws.