diff options
author | James Moger <james.moger@gmail.com> | 2013-04-03 20:31:11 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2013-04-03 20:31:11 -0400 |
commit | 75bca8ea4a8bc1126cc47c97c9ce595fd650c831 (patch) | |
tree | 26aec41efd292231d494868e10641bb92796dd71 /src/main/java/com/gitblit/GitBlitServer.java | |
parent | b9afce4d3db8dec34b22b07c952df814efc7335f (diff) | |
download | gitblit-75bca8ea4a8bc1126cc47c97c9ce595fd650c831.tar.gz gitblit-75bca8ea4a8bc1126cc47c97c9ce595fd650c831.zip |
Added Git Daemon support
Diffstat (limited to 'src/main/java/com/gitblit/GitBlitServer.java')
-rw-r--r-- | src/main/java/com/gitblit/GitBlitServer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/GitBlitServer.java b/src/main/java/com/gitblit/GitBlitServer.java index 08c0d2a2..79d3d6bd 100644 --- a/src/main/java/com/gitblit/GitBlitServer.java +++ b/src/main/java/com/gitblit/GitBlitServer.java @@ -342,6 +342,7 @@ public class GitBlitServer { // Override settings from the command-line
settings.overrideSetting(Keys.realm.userService, params.userService);
settings.overrideSetting(Keys.git.repositoriesFolder, params.repositoriesFolder);
+ settings.overrideSetting(Keys.git.daemonPort, params.gitPort);
// Start up an in-memory LDAP server, if configured
try {
@@ -601,6 +602,9 @@ public class GitBlitServer { @Parameter(names = "--ajpPort", description = "AJP port to serve. (port <= 0 will disable this connector)")
public Integer ajpPort = FILESETTINGS.getInteger(Keys.server.ajpPort, 0);
+ @Parameter(names = "--gitPort", description = "Git Daemon port to serve. (port <= 0 will disable this connector)")
+ public Integer gitPort = FILESETTINGS.getInteger(Keys.git.daemonPort, 9418);
+
@Parameter(names = "--alias", description = "Alias of SSL certificate in keystore for serving https.")
public String alias = FILESETTINGS.getString(Keys.server.certificateAlias, "");
|