Hi guys,
Recently I got an error, that I can’t identify the problem.
I read the posts with same error, I reviewed but not applicable at this case.
This error occurs when webserver is running on other port than 443.
I’m not using docker, and the ports are open on UFW Firewall.
When I try to enter on login page, I receive the error:
Cannot retrieve OAuth Client credentials: Getting client tokens for host [videos.slackjeff.com.br (http:// videos.slackjeff.com.br) is forbidden.
I’m listening nginx webserver on port 9443 (not 443).
And peertube node service on port 9000 (default)
When I set peertube log to ‹ debug › level, I got the message log:
« message »:« Getting client tokens for host videos.slackjeff.com.br is forbidden (expected videos.slackjeff.com.br:9443). »,« label »:« videos.slackjeff.com.br:9443 »
« Client log: Backend returned code 403, errorMessage is: Getting client tokens for host videos.slackjeff.com.br is forbidden »,« label »:« videos.slackjeff.com.br:9443 »
I don’t know why, but it seems service is trying to communicate on port 443, not 9443
So, only for testing purposes, I configured nginx webserver (nginx.conf) on port 443 and changed the production.yaml to port 443 as well; and everything runs fine!
The problem is specifically using another port other than 443. I tried 3 times a fresh installations, but same problem occurs.
My partial nginx.conf:
upstream backend {
server 127.0.0.1:9000;
}
server {
listen 9443 ssl http2;
server_name videos.slackjeff.com.br;
...
My partial production.yaml:
listen:
hostname: '127.0.0.1'
port: 9000
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
webserver:
https: true
hostname: 'videos.slackjeff.com.br'
port: 9443
...
Thanks in advance,
Grether