How to configure gitblit in windows

We need a GIT server on our local server. After searching the web, we decided to use Gitblit , which is easy to install.

But we have problems when we want to access Gitblit from other machines. As the installation documents mentioned in Creating Your Own Self-Signed Certificate , we need to set the host name to the HOSTNAME variable. Here is my makekeystore.cmd file.

 @SET HOSTNAME=my-server-ip<br/> @del keystore<br/> @java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.MakeCertificate --hostname %HOSTNAME% --subject "CN=%HOSTNAME%, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US" 

And we update gitblit.properties as follows

 server.httpBindInterface = my server ip server.httpsBindInterface = my server ip server.httpPort = 9090 server.httpsPort = 9443 

After these settings, we still cannot access Gitblit. When we enter http: my-server-ip:9090 , the page cannot be opened.

If we change all these values ​​back to localhost and enter http: // localhost: 9090, it will work.

So, does anyone know how to configure Gitblit, I have read the white paper many times, but no results. Who can give me a simple one?

Thank you very much!:)

+4
source share
1 answer
 server.httpBindInterface = my server ip server.httpsBindInterface = my server ip 

These values ​​allow you to configure Gitblit to bind to a specific network adapter with a local IP address. You do not specify an external / external IP address here. If you don’t need to bind to a specific network adapter, you can leave these settings blank, and Gitblit will serve 9090 and 9443 on all local network adapters available on the server.

+4
source

Source: https://habr.com/ru/post/1441958/


All Articles