My YunoHost server
YunoHost version: 4.0.8
Description of my issue
I’m trying to set up a JSXC (messaging inside Nextcloud), for that I to configure a BOSH access to Metronome.
I append inside the main domain nginx configuration file :
server {
listen 80;
...
location = /http-bind {
proxy_pass http://localhost:5290/http-bind;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_buffering off;
# tcp_nodelay on;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Port $server_port;
}
The BOSH module seems to work, as on the server :
curl -i localhost:5290/http-bind
(...)
<!DOCTYPE html><html><head><title>Metronome's BOSH Interface</title></head><body>
<p>It works! Now point your BOSH client to this URL to connect to the XMPP Server.</p>
But testing the nginx redirection, it got catched by the SSO :
curl -i http://domain.tld/http-bind
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Sun, 18 Oct 2020 16:25:35 GMT
Content-Type: text/html
Content-Length: 154
Connection: keep-alive
X-SSO-WAT: You've just been SSOed
(...)
<head><title>302 Found</title></head>
How could I bypass the SSO ?