Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gene1wood/f473beeaa077d7869fee56a3d1f03367 to your computer and use it in GitHub Desktop.
Save gene1wood/f473beeaa077d7869fee56a3d1f03367 to your computer and use it in GitHub Desktop.
Fix for the peertube error "Cannot retrieve OAuth Client credentials: undefined" and "client invalid"

I deployed Peertube via Docker but did not use the included nginx docker container and instead put Peertube behind an Apache httpd reverse proxy.

I was getting the error : Cannot retrieve OAuth Client credentials: undefined when loading the peertube page and the error client invalid when attempting to log in.

The cause was that I wasn't passing the host header through Apache because I was missing the ProxyPreserveHost On directive.

I added this and resolved the issue

ProxyPreserveHost On
ProxyRequests On
@venu430
Copy link

venu430 commented Oct 11, 2022

hi can you please share the apache configuration and how did you solve login issues. i have deployed manually in centos8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment