Hello,
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.
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…).
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 192.168.122.1 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=http://192.168.122.1&is_public=1&redirect_type=proxy" --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.
Will it be possible to redirect localhost:5290/http-bind to something like im.domian.tld/http-bind like Yunohost have ? https://im.yunohost.org/http-bind
Hello,
I’m trying to redirect https//mon.domaine.org/libretime to an LXC container that runs on 10.0.3.200 an apache server with a website on /
With this configuration :
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) : http://127.0.0.1:8989
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
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
Bonjour,
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.
Bonjour,
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.
Bonjour,
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
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à!”.
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 ?