[Redirect_ynh] Share your case examples and config


With @opi we have just updated the Redirect app.
This app adds a link on your user panel redirecting to another page or app. Some redirects can even be protected behind the SSO.

I have detailed some case examples and config types in the readme.

Feel free to share in this topic your use of this app (for Docker containers? External links? …) and the Nginx customization you had to do.

The idea behind this sharing is to (1) see how the app is used, (2) see if the nginx default config could be improved, (3) provide other users with customized Nginx files for certain apps.

Thanks and feel free to contribute :slight_smile:


Personally, I have initially packaged this app to use it with Docker containers.
Currently, I use it to redirect (proxy+SSO) to multiple apps from a “Stealthbox” Docker container (couchpotato, deluge, sickrage…).

I also use it to create tiles redirecting (visible) to Owncloud apps (contacts, calendar…).

Recently, another user posted a customized Nginx for the “glowing-bears” app

I have a server with a bunch of websites served by apache. I didn’t want to install yunohost directly on that host so I installed in a VM that sits behind a NAT on an internal (virtual) subnetwork. For now I am accessing the yunohost web server through some ssh tunnels.

Redirect app is helping me serve these existing websites (awaiting proper migration if/when possible).

This is how to automate the configuration :

  • login via ssh
  • write the list of domain names in in a text file
  • run the following bash loops (assuming is the internal IP of your virtual machine host) :

    for i in `cat domains.list `; do yunohost --admin-password YOURADMINPASSWORD domain add $i; done

    for i in `cat domains.list `; do yunohost app install https://github.com/YunoHost-Apps/redirect_ynh --args "domain=$i&path=/&redirect_path=" --label $i; done

then DNAT the 80/443 to your VM (192.168.122.Y) and your existing websites should be served via apache and nginx.

1 Like

Will it be possible to redirect localhost:5290/http-bind to something like im.domian.tld/http-bind like Yunohost have ?

Hi suppose, you just have to install redirect_ynh and then customize the nginx accordingly

Thanks for the quick reply. It works \o/

hello i need a reverse proxy https — HTTP

how do that please

I’m trying to redirect https//mon.domaine.org/libretime to an LXC container that runs on an apache server with a website on /
With this configuration :

 location /libretime/ {
  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;

  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";

  # Include SSOWAT user panel.
  include conf.d/yunohost_panel.conf.inc;
  more_clear_input_headers 'Accept-Encoding';

I can get the homepage but not the css file, the server is looking at https://mon.domaine.org/css/radio-page/radio-page.css whereas it is at https://mon.domaine.org/libretime/css/radio-page/radio-page.css.
Did I missed a parameter in the config ?
Thanks for any advice + this nice app


It could be your app not understanding properly that its root URL is not your.domain.tld but your.domain.tld/libretime ? Like, some apps have this kind of parameter in their config files… Depends of how the app is built. (NB : by ‘app’ here, i mean your website)


Yes, thanks, it seems to be the good direction, now I manage to get the css if I modify the config file of the webapp, but the login button drive me to yunohost login page …


Just tried and get Sonarr (sonarr.tv) to work thanks to ynh_redirect (sonarr is manually installed through the repo as described here

url : dedicated_subdomain.domain.tld
path : /
redirect_from (i forgot the real variable name) :
type: proxy

and it works \o/

As each and everytime, thanks to the amazing work. I couldn’t have easily configured a reverse proxy (the name and concept of which i discovered reading the readme and the forum) so easily and quickly

Ynh rocks :rocket:

1 Like

Having a problem with Redirect, can’t get it to see SOnarr which is running on my Windows machine in the LAN. Redirect itself is running on Yunohost on a VM on the same pc. It just gives me a 502 error. I have tried all the different options and I have it working to redirect to a version of Ombi running on the same PC

je ne suis pas sur d’avoir bien compris l’usage de cette app.
Est ce qu’elle permet de faire une redirection vers une autre app hebergé sur un autre serveur du réseau local?

Si oui, je n’ai pas compris comment l’utiliser… En fait, je voudrai, à partir de mon panel yunohost, faire une redirection sur mon appli domotique (jeedom) qui se situe sur un(e) rasperry qui n’a accès qu’à mon réseau local.

Merci de votre aide

Ton utilisation me paraît tout à fait correcte.
Personnellement, pour la tester, j’avais laissé les options par défaut et déclaré l’URL de mon site distant.

hé ben ça y est, j’ai enfin résolu mon problème… en fait, c’était la variable path qui n’allait pas.
Donc, si ça peut aider… pour rappel, mon jeedom local est dispo à une addresse locale:
type 192.XXX.XXX.XXX:

Dans yunhost:
Libellé: S’que vous voulez (moi: Jeedom)
Domaine: domo.NDD.fr (en gros j’ai fait une redirection sous-domaine vers mon domaine principal en CNAME)
Chemin: / (j’ai laissé vide avec juste le slash)
Chemin: IP locale en 192.XXX.XXX.XXX
Type: dans mon cas proxy invisible accessible à tous

Voilà, j’espère que c’est assez clair et que ça va aider un peu

Apres pas mal de galeres je partage avec vous mon fichier custom pour ceux qui voudrai rediriger la WEBUI de qbittorent:

location /qbt {
    rewrite ^(.*[^/])$ $1/ redirect;
location ~ ^/qbt/(?<url>.*) {
    proxy_hide_header Referer;
    proxy_hide_header Origin;
    proxy_set_header Referer '';
    proxy_set_header Origin '';

  # Include SSOWAT user panel.
  include conf.d/yunohost_panel.conf.inc;
  more_clear_input_headers 'Accept-Encoding';
1 Like

Great plugin, thanks.

I used it to migrate a Wordpress to a new domain and keep the old links working.
I added $request_uri; to the end of the return 301 statement and “voilà!”.


Bonjour à tous,

savez vous comment faire un reverse proxy transparent mais sur du https ?
j’ai un serveur proxmox et je n’arrive pas à rediriger le flux http et hhtps par mon ynohohst ?

qu’en pensez vous svp

Bonjour, normalement c’est automatiquement en HTTPS. Il suffit de mettre l’adresse http dans le proxy (pas la https). Le proxy restera en HTTPS


ça ne fonctionne pas :

j’ai un nas qnap qui fonctionne en local via l’adresse suivante :
et j’aimerais donc le faire passer par un nom de domaine issue de yunohost du style

voici ma conf yunohost de redirect :

Voici ma conf sur mon qnap :

et lorsque j’éssai de valider mon certificat let’s encrypt sur mon Qnap :

l’erreur que j’ai dans mon navigateur :

savez vous comment résoudre ce probléme

merci par avance