Welcome! Log In Create A New Profile


nginx git configuration

Posted by mannaia 
nginx git configuration
March 18, 2018 02:25PM
Hi to all,

I tryed to configure nginx to forward request auth to my git repository , that i ve setup with ssh key authentication.
I ve try this solution but that not works fine for me .

My nginx server has a public ip and i have to set proxypass auth to my git repo that reside in other location that is reacheble with private address. i need that that the public url with /location, forward the authetication with ssh key at port 22
the proxypass auth must works with gitbush or throw git bush .
how i can do that ?

anyone have do that configuration in our environment ?

location /git {

# fcgiwrap is set up to listen on this host:port
fastcgi_pass localhost:9001;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-beckend;
# export all repositories under GIT_PROJECT_ROOT
fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT /home/git/gitrepo/;
fastcgi_param PATH_INFO $1;
Re: nginx git configuration
March 18, 2018 02:45PM
ssh <> http, so why are you trying to pass the ssh protocol via http ?

nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx git configuration
March 18, 2018 02:54PM

simple http to ssh protocol, but that not works for me. why ?

i ve to pass also the auth with ssh key than example

git clone git@(httpNginxarress/repository
Re: nginx git configuration
March 18, 2018 05:57PM
I ve nginx on Windows frontend and git repository on Linux vm in the backend side. How i can configure that??
Re: nginx git configuration
March 19, 2018 10:36AM
nginx is on windows server, version 1.12.2

how i can conlfigure location / forwarding for git ?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 337
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready