HAProxy and SSO Auth

Hello!

In my environment have 2 Peertube instances( servers) and 1 HAProxy balancer above them. On both identical Peertube servers I use plugin peertube-plugin-auth-openid-connect with identical OpenID settings (targeted to corporate KeyCloak).

HAProxy balancing is OK but authentication don’t work( In UI see an error: “Sorry but there was an issue with the external login process. Please contact an administrator.” In the log on Peertube server at this moment I see only one record: “Received callback but code verifier or state not found in request cookies.“

How to properly forward it from HAProxy to required Peertube server?

Hello,

PeerTube doesn’t support load balancing yet so putting 2 instances behind a haproxy won’t work.

Thanks for reply!

Will it in plans?

Not planned at the moment, but we’re thinking of some parts of PeerTube that could be used as a « secondary » server :slight_smile:

1 Like

Great news! When it’s planned to realize?

We don’t have an ETA, we’re just thinking about the idea :slight_smile:

OK. Understood)
Thank you!