forked from gitblit-org/gitblit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clarified SSL certificate generation and configuration in light of the hostname verificiation that JGit currently does despite the http.sslVerify=false setting. * Added some troubleshooting information related to filesystem permissions and reading repositories. * Switched from JavaService to Apache Commons Daemon. Not sure what happened to JavaService as it stopped working for me on Windows 7 with Java 1.6.0_26. Commons Daemon accomplishes the same thing and offers a nice service control utility.
- Loading branch information
Showing
22 changed files
with
160 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,38 @@ | ||
set JVM=C:\Program Files\Java\jdk1.6.0_26 | ||
JavaService.exe -install gitblit "%JVM%\jre\bin\server\jvm.dll" -Xmx1024M -Djava.class.path=%CD%\gitblit.jar;"%JVM%\lib\tools.jar" -start com.gitblit.Launcher -params --storePassword gitblit -stop com.gitblit.Launcher -params --stop -out %CD%\logs\stdout.log -err %CD%\logs\stderr.log -current %CD% | ||
@REM Install Gitblit as a Windows service. | ||
|
||
@REM gitblitw.exe (prunmgr.exe) is a GUI application for monitoring | ||
@REM and configuring the Gitblit procrun service. | ||
@REM | ||
@REM By default this tool launches the service properties dialog | ||
@REM but it also has some other very useful functionality. | ||
@REM | ||
@REM http://commons.apache.org/daemon/procrun.html | ||
|
||
@REM arch = x86, amd64, or ia32 | ||
SET ARCH=amd64 | ||
|
||
@REM Be careful not to introduce trailing whitespace after the ^ characters. | ||
@REM Use ; or # to separate values in the --StartParams parameter. | ||
"%CD%\%ARCH%\prunsrv.exe" //IS//gitblit ^ | ||
--DisplayName="gitblit" ^ | ||
--Description="a pure Java Git solution" ^ | ||
--Startup=auto ^ | ||
--LogPath="%CD%\logs" ^ | ||
--LogLevel=INFO ^ | ||
--LogPrefix=gitblit ^ | ||
--StdOutput=auto ^ | ||
--StdError=auto ^ | ||
--StartPath="%CD%" ^ | ||
--StartClass=com.gitblit.Launcher ^ | ||
--StartMethod=main ^ | ||
--StartParams="--storePassword;gitblit" ^ | ||
--StartMode=jvm ^ | ||
--StopPath="%CD%" ^ | ||
--StopClass=com.gitblit.Launcher ^ | ||
--StopMethod=main ^ | ||
--StopParams="--stop" ^ | ||
--StopMode=jvm ^ | ||
--Classpath="%CD%\gitblit.jar" ^ | ||
--Jvm=auto ^ | ||
--JvmMx=1024 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
@REM -------------------------------------------------------------------------- | ||
@REM Set HOSTNAME to the server's hostname | ||
@REM -------------------------------------------------------------------------- | ||
@SET HOSTNAME=localhost | ||
@del keystore | ||
@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.MakeCertificate --alias localhost --subject "CN=localhost, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US" | ||
@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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
@REM -------------------------------------------------------------------------- | ||
@REM Set HOSTNAME to the server's hostname | ||
@REM -------------------------------------------------------------------------- | ||
@SET HOSTNAME=localhost | ||
@del keystore | ||
@keytool -keystore keystore -alias localhost -genkey -keyalg RSA -dname "CN=localhost, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US" | ||
@keytool -keystore keystore -alias %HOSTNAME% -genkey -keyalg RSA -dname "CN=%HOSTNAME%, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
javaservice -uninstall gitblit | ||
@REM arch = x86, amd64, or ia32 | ||
SET ARCH=amd64 | ||
|
||
@REM Delete the gitblit service | ||
"%CD%\%ARCH%\prunsrv.exe" //DS//gitblit |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.