Re: [git-users] Git behind nginx reverse proxy

2015-10-29 Thread Péricé Robin
I want to use ssh protocole.

Le mercredi 28 octobre 2015 18:00:01 UTC+1, Konstantin Khomoutov a écrit :
>
> On Wed, 28 Oct 2015 09:20:41 -0700 (PDT) 
> Péricé Robin  wrote: 
>
> > I want (if possible) to use git behind a nginx reverse proxy. This is 
> > my configuration. 
> > 
> > 
> > <
> https://lh3.googleusercontent.com/-1nAfkrNG_zo/VjDz5KXcjQI/IPY/esyj1BQxWnA/s1600/git-behind-reverse-proxy.png>
>  
>
> > 
> > 
> > I have 2 virtual machines. The first one host Nginx and the second 
> > host my Git repositories. I can access to git repositories usig Git 
> > VM dynamic ip (84.39.XX.XX), but it would be awesome if I can do *git 
> > clone* (etc ...) on* scm.domain.fr* instead of the dynamic-ip (of 
> > course I need this because I don't want everybody to know my Git VM 
> > ip...). 
> > 
> > Is this possible with a Nginx reverse-proxy ? 
>
> What protocol are you using when doing `git clone` from your Git VM? 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Git behind nginx reverse proxy

2015-10-29 Thread Konstantin Khomoutov
On Thu, 29 Oct 2015 01:17:58 -0700 (PDT)
Péricé Robin  wrote:

> > > I want (if possible) to use git behind a nginx reverse proxy.
> > > This is my configuration. 
[...]
> > > I have 2 virtual machines. The first one host Nginx and the
> > > second host my Git repositories. I can access to git repositories
> > > usig Git VM dynamic ip (84.39.XX.XX), but it would be awesome if
> > > I can do *git clone* (etc ...) on* scm.domain.fr* instead of the
> > > dynamic-ip (of course I need this because I don't want everybody
> > > to know my Git VM ip...). 
> > > 
> > > Is this possible with a Nginx reverse-proxy ? 
> >
> > What protocol are you using when doing `git clone` from your Git
> > VM? 
> >
> I want to use ssh protocole.

Then the "stream proxy" module [1] appears to be the thing you want to
look at: it allows proxying of arbitrary TCP traffic, so basically you'd
want to set it up so that it proxies connections to 22/TCP to your VM.

1. http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Git behind nginx reverse proxy

2015-10-28 Thread Péricé Robin


Hello everybody,

I want (if possible) to use git behind a nginx reverse proxy. This is my 
configuration.





I have 2 virtual machines. The first one host Nginx and the second host my 
Git repositories. I can access to git repositories usig Git VM dynamic ip 
(84.39.XX.XX), but it would be awesome if I can do *git clone* (etc ...) on* 
scm.domain.fr* instead of the dynamic-ip (of course I need this because I 
don't want everybody to know my Git VM ip...).

Is this possible with a Nginx reverse-proxy ?

Best regards,

Robin

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Git behind nginx reverse proxy

2015-10-28 Thread Konstantin Khomoutov
On Wed, 28 Oct 2015 09:20:41 -0700 (PDT)
Péricé Robin  wrote:

> I want (if possible) to use git behind a nginx reverse proxy. This is
> my configuration.
> 
> 
> 
> 
> 
> I have 2 virtual machines. The first one host Nginx and the second
> host my Git repositories. I can access to git repositories usig Git
> VM dynamic ip (84.39.XX.XX), but it would be awesome if I can do *git
> clone* (etc ...) on* scm.domain.fr* instead of the dynamic-ip (of
> course I need this because I don't want everybody to know my Git VM
> ip...).
> 
> Is this possible with a Nginx reverse-proxy ?

What protocol are you using when doing `git clone` from your Git VM?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.