git.allowPushPull = true\r
\r
# Base folder for repositories\r
-# Use forward slashes on Windows!!\r
+# Use forward slashes even on Windows!!\r
git.repositoriesFolder = c:/projects/git\r
\r
# Export all repositories\r
git.exportAll = true\r
\r
# Search repositories folder for nested repositories\r
+# e.g. /libraries/mylibrary.git\r
git.nestedRepositories = true\r
\r
# The root clone url\r
#\r
# Git:Blit Web Settings\r
#\r
+# If blank Git:Blit is displayed.\r
web.siteName =\r
\r
# If web.authenticate=true, users with "admin" role can create repositories,\r
web.repositoriesMessage = gitblit\r
\r
# Use the client timezone when formatting dates.\r
-# This uses AJAX to determine the browser's timezone and enables Wicket \r
-# session management for the connection.\r
+# This uses AJAX to determine the browser's timezone.\r
web.useClientTimezone = false\r
\r
# Date and Time formats\r
server.useNio = true\r
\r
# Standard http port to serve. <= 0 disables this connector.\r
-server.httpPort = 0\r
+server.httpPort = 80\r
\r
# Secure/SSL https port to serve. <= 0 disables this connector.\r
server.httpsPort = 443\r
if (params.securePort > 0) {\r
File keystore = new File("keystore");\r
if (!keystore.exists()) {\r
- logger.info("Generating self-signed ssl certificate");\r
+ logger.info("Generating self-signed SSL certificate");\r
generateSelfSignedCertificate("localhost", keystore, params.storePassword);\r
}\r
if (keystore.exists()) {\r
SslSocketConnector ssl = new SslSocketConnector();\r
connector = ssl;\r
}\r
- connector.setAllowRenegotiate(true);\r
+ connector.setAllowRenegotiate(false);\r
connector.setKeystore(keystore.getAbsolutePath());\r
connector.setPassword(password);\r
connector.setPort(port);\r
+++ /dev/null
-package com.gitblit;\r
-\r
-import java.io.File;\r
-\r
-import org.eclipse.jgit.api.Git;\r
-import org.eclipse.jgit.api.InitCommand;\r
-\r
-import com.beust.jcommander.JCommander;\r
-import com.beust.jcommander.Parameter;\r
-import com.beust.jcommander.ParameterException;\r
-import com.beust.jcommander.Parameters;\r
-\r
-public class MakeRepository {\r
-\r
- public static void main(String... args) throws Exception {\r
- Params params = new Params();\r
- JCommander jc = new JCommander(params);\r
- try {\r
- jc.parse(args);\r
- if (params.help)\r
- jc.usage();\r
- } catch (ParameterException t) {\r
- jc.usage();\r
- }\r
-\r
- File directory = new File(params.create);\r
- InitCommand init = new InitCommand();\r
- init.setDirectory(directory);\r
- init.setBare(true);\r
- Git git = init.call();\r
- git.getRepository().close();\r
- System.out.println("GIT repository " + directory.getCanonicalPath() + " created.");\r
- }\r
-\r
- @Parameters(separators = " ")\r
- private static class Params {\r
-\r
- /*\r
- * Help/Usage\r
- */\r
- @Parameter(names = { "-h", "--help" }, description = "Show this help")\r
- public Boolean help = false;\r
-\r
- /*\r
- * Repository to Create\r
- */\r
- @Parameter(names = { "--create" }, description = "GIT Repository to Create", required = true)\r
- public String create = "";\r
-\r
- }\r
-}\r