bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
693 stars 117 forks source link

Question: NPM settings for rdpgw after authentication i get nginx 503 errror #76

Closed pbvdven closed 11 months ago

pbvdven commented 11 months ago

im trying to setup rdpgw with authentik openid behind Nginx Proxy Manager but after successful authentication it wont download the rdp but i get a nginx 503 error.

Log rdpgw keeps saying Identity SessionId: 47e2557d-0c8b-4f04-87fc-499dd00ecdd3, UserName: : Authenticated: false

Do i need some extra configuration in NPM i tried some different things but i cant get it working some help would be appreciated.`

i tried adding this what someone mentioned but no luck. proxy_set_header Upgrade "websocket"; proxy_set_header Connection "Upgrade";

bolkedebruin commented 11 months ago

I haven't tried setting things up behind nginx (we used haproxy on kubernetes). Note that you need to enforce http1/1 (http2 isnt supported by the protocol) and that the method (GET/POST etc) by the client is non standard. Your proxy needs to be able to handle this.

pbvdven commented 11 months ago

Thanks for answering im going to try to set it to http1 default is http2 hoping thats the issue.