| | |
| | | 2. The server itself is configured through a simple text file.
|
| | | Open `data/gitblit.properties` in your favorite text editor and make sure to review and set:
|
| | | - *server.httpPort* and *server.httpsPort*
|
| | | - *server.httpBindInterface* and *server.httpsBindInterface* |
| | | - *server.storePassword*
|
| | | - *server.storePassword*
|
| | | **https** is strongly recommended because passwords are insecurely transmitted form your browser/git client using Basic authentication!
|
| | | - *git.packedGitLimit* (set larger than the size of your largest repository)
|
| | | - *git.streamFileThreshold* (set larger than the size of your largest committed file)
|
| | |
| | | --baseFolder The default base folder for all relative file reference settings
|
| | | --repositoriesFolder Git Repositories Folder
|
| | | --userService Authentication and Authorization Service (filename or fully qualified classname)
|
| | | --useNio Use NIO Connector else use Socket Connector.
|
| | | --httpPort HTTP port for to serve. (port <= 0 will disable this connector)
|
| | | --httpsPort HTTPS port to serve. (port <= 0 will disable this connector)
|
| | | --ajpPort AJP port to serve. (port <= 0 will disable this connector)
|
| | | --sshPort SSH Daemon port to serve. (port <= 0 will disable this daemon)
|
| | | --gitPort Git Daemon port to serve. (port <= 0 will disable this daemon)
|
| | | --alias Alias in keystore of SSL cert to use for https serving
|
| | | --storePassword Password for SSL (https) keystore.
|
| | | --shutdownPort Port for Shutdown Monitor to listen on. (port <= 0 will disable this monitor)
|
| | | --dailyLogFile Redirect logging to a rolling, daily log file instead of stdout
|
| | | --tempFolder Folder for server to extract built-in webapp
|
| | |
|
| | | **Example**
|
| | |
| | | You can override Gitblit GO's default Log4j configuration with a command-line parameter to the JVM.
|
| | |
|
| | | java -Dlog4j.configuration=file:///home/james/log4j.properties -jar gitblit.jar <optional_gitblit_args>
|
| | | |
| | | For reference, here is [Gitblit's default Log4j configuration](https://github.com/gitblit/gitblit/blob/master/src/log4j.properties). It includes some file appenders that are disabled by default. |
| | |
|
| | | You can not use override the default log4j configuration *AND* specify the `--dailyLogFile` parameter. For reference, here is [Gitblit's default Log4j configuration](https://github.com/gitblit/gitblit/blob/master/src/log4j.properties). It includes some file appenders that are disabled by default. |
| | |
|