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!:)
source share