Redirect to another apps without SSO with nginx custom conf or redirect yunohost app doesn't work

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.9.1
How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I try to redirect on other webapps

Describe your issue

I have a YunoHost server and a Proxmox server, only, I have a problem accessing the second one, I would like to configure a redirection to the proxmox which is on 192.168.1.100/24 ​​(YNH: 192.168.1.28/24), only the two applications “Redirect” and “Rerverse Proxy” do not work at all for this, both return me a 501 Not Implemented, the Proxmox is perfectly accessible on https://192.168.1.100:8006/ but I can not configure the redirection even manually with NGINX and by excluding the SSO URL, it does not work, the SSO always takes over, I appreciate yunohost and its way of working, but it would be time to make it a real solution allowing more advanced users to customize their NGINX configuration in a better way, if someone has the solution without VPN I am interested, because I also develop some web projects requiring a server and I am unable to do it securely with HTTPS because of YunoHost and its management of NGINX

Share relevant logs or error messages

No logs, i try to redirect, but NGINX managed by YunoHost and its SSO make this impossible

In Proxmox > node > system > certificates >> ACME : add your domain name
In yunohost install redirect app with proxy redirect. No other manual modifications.
This is how I have my yunohost subdomain pointing to proxmox

Have you tried with docker? Care to share your findings?

When redirecting, even internally on localhost, the SSO still takes over. This creates a problem with some apps (I know with ERPNEXT) in that the redirect URL contains the secret generated by the SSO and that is passed to the proxy host. The proxy host does not understand this secret and throws an unauthorized error.

The only way to get around this, I found, was that I had to make the reverse proxy app PUBLIC so that the SSO would leave it alone, when accessed. But that circumvents security by making a private app public on the open internet.

You mean yunohost inside a docker container? No

My setup is a bit more complex :

  • vps with my main domain and yunohost
  • dedicated server with proxmox and npm installed in a container
  • subdomain from vps redirecting to proxmox via redirect app in private mode

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.