I’ve looked around and for now I only seem to find configurations for YunoHost as the reverse proxy, but I am using it only for testing and already have my own Nginx RP server up and running.
I use a no-ip domain for my testing and that is the domain I added to YunoHost. I started adding apps (mail server for example) and don’t know how that would translate with the RP…
If I leave the configuration as is, I get redirected to the LAN ip address of the YunoHost server. If I comment in the proxy_set_header I end up in a redirection loop.
J’ai regarder un peu partout et pour l’instant je trouve seulement des configurations pour utiliser YunoHost comme reverse proxy (proxy inversé?), mais dans mon cas je l’utilise seulement pour des test et j’ai déjà un Nginx RP en ligne et fonctionnel.
J’utilise un domaine no-ip pour mes test et c’est aussi le domaine que j’ai donné à YunoHost. J’ai commencer à ajouter des app (serveur mail par example) et je ne sais pas comment cela va se traduire avec le RP…
conf Nginx
voir version anglaise ;)
Si je laisse la configuration tel quel, je suis rediriger vers l’adresse ip LAN du serveur YunoHost. Si j’enleve les # je me retrouve dans une loop de redirection.
Uuuuuh … but how does that relates to YunoHost ? YunoHost provides an automatically-managed nginx configuration and you copy-pasted a custom nginx configuration ? I’m not even sure to understand the issue you are trying to fix here ? o.O
I have my own nginx server, I want to add YunoHost behind it (the 192.168.2.56 address it the LAN ip of YunoHost). if I leave YunoHost as is it won’t work since port 80 and 443 are already sent from my router to the Nginx Server,
Can anyone add some clarification to this? I am installing YunoHost right now, mostly for running Synapse. I already have a bunch of servers running behind my nginx reverse proxy and I don’t want to change that.
It seems like this post covers that, but I really don’t understand the answer. Which server does that config go into, yuno host, or the external RP server? what needs to be changed to match my setup, just the IP?
I don’t mean to sound ignorant, Im just a little lost on how to do this.
I’m wondering about this : maybe technically it works, but I’m suspecting that from the point of view of Yunohost, all requests appears to come from the local IP of the host (192.168.x.y or 10.x.y.z tpically). Therefore, combined with the fact that fail2ban is running, an attacker could trigger some sort of denial of service by constantly brute-forcing the portal or webadmin, which would result in Yunohost blocking all traffic on port 80/443 from the host …
One way around this is either to disable fail2ban (which sounds spooky but anyway may not be so useful in a reverse proxy context - it kinda depends on the exact proxying topology for SSH etc.) - or there’s also the real_ip_header that may got to be tweaked in the Yunohost (not 100% sure about this)
I have a yunohost server installed at home behind my router.
The yunohost server is connected to internet but not exposed to outside.
All of my installed application are declared behind a .local domain.
I have another server in the same network with caddy reverse proxy and would like to expose a specific app (vaultwarden in this case but any other app eventually) from my yunohost server.
The router is correctly configured with open ports 80 & 443 pointing to my reverse proxy server.
I had this setup for years before just it wasnt a yunohost server but a ‘standard’ debian server…
So I am running into issues since it seems like yunohost only expose app via a domain (.local in my case) with self signed certificates.
This is my caddy configuration inspired from my previous setup and trying to adapt it now
I found out my way out…
on my reverse-proxy I edited /etc/host with correct IP to mysuperdomain.com
on yunohost I configured the domain mysuperdomain.com leaving it with default self-signed certificate
I have adapted the caddy configuration to reflect those changes that way
This looks like what I need but where exactly do I put this? In a proxy.conf file in the conf.d folder of the domain? In the conf.d file? Where does one put this nginx configuration, what server does it go on?
Hi !
I’m trying to set 2 yunohosts servers at home.
I have one for my friends and I, and I want one for my wife and I.
Currently the one for my friends works just fine because I’ve routed all the port to it.
I’m trying to set a reverse proxy up. I’ve followed @Hadrien configuration but it does not work, I’ve got an ssl error : ERR_SSL_PROTOCOL_ERROR
Hi! I don’t have the answer, but I think this error comes up when you try to access HTTP while saying it’s supposed to be HTTPS. Can you post your config?