| | |
| | | --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)
|
| | | --storePassword Password for SSL (https) keystore.
|
| | | --shutdownPort Port for Shutdown Monitor to listen on. (port <= 0 will disable this monitor)
|
| | | --tempFolder Folder for server to extract built-in webapp
|
| | |
| | | **Example**
|
| | |
|
| | | java -jar gitblit.jar --userService c:\myrealm.config --storePassword something
|
| | |
|
| | | #### Overriding Gitblit GO's Log4j Configuration
|
| | |
|
| | | 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. |
| | |
|
| | | ## Running Gitblit behind Apache
|
| | |
|
| | |
| | | Allow from all
|
| | | </Proxy>
|
| | |
|
| | | # Turn on Proxy status reporting at /status
|
| | | # This should be better protected than: Allow from all
|
| | | ProxyStatus On
|
| | | <Location /status>
|
| | | SetHandler server-status
|
| | | Order Deny,Allow
|
| | | Allow from all
|
| | | </Location>
|
| | |
|
| | | # The proxy context path must match the Gitblit context path.
|
| | | # For Gitblit GO, see server.contextPath in gitblit.properties.
|
| | |
|
| | | #ProxyPass /gitblit http://localhost:8080/gitblit
|
| | | #ProxyPassreverse /gitblit http://localhost:8080/gitblit
|
| | |
|
| | | # If your httpd frontend is https but you are proxying http Gitblit WAR or GO
|
| | | #Header edit Location ^http://([^/]+)/gitblit/ https://$1/gitblit/
|
| | |
|
| | | #ProxyPass /gitblit ajp://localhost:8009/gitblit
|
| | | %ENDCODE%
|
| | | **Please** make sure to:
|
| | |
| | | **NOTE:**
|
| | | Care should be taken when devising your notification scheme as it relates to any VIEW restricted repositories you might have. Setting a global mailing list and activating push notifications for a VIEW restricted repository may send unwanted emails.
|
| | |
|
| | | ## Lucene Search Integration
|
| | |
|
| | | *SINCE 0.9.0*
|
| | |
|
| | | Repositories may optionally be indexed using the Lucene search engine. Lucene indexing is an opt-in feature which means that no repositories are automatically indexed. Like anything else, this has benefits and drawbacks.
|
| | |
|
| | | You may specify which branches should be indexed per-repository in the *Edit Repository* page. New/empty repositories can not pre-specify indexed branches; you can only specify indexed branches for a repository with commits. Indexes are built and incrementally updated on a 2 minute cycle so you may have to wait a few minutes before your index is built or before your latest pushes get indexed.
|
| | |
|
| | | **NOTE:** |
| | | Repositories that specify indexed branches will redirect to the Lucene search page from the search box in the upper right corner of a repository page. Repositories that do not specify any indexed branches will use the traditional commit search.
|
| | |
|
| | | The Lucene search offers several advantages over the traditional commit search:
|
| | |
|
| | | 1. multi-term searches
|
| | | 2. term-highlighted and syntax-highlighted fragment matches
|
| | | 3. multi-repository searches
|
| | |
|
| | | ## Client Setup and Configuration
|
| | | ### Https with Self-Signed Certificates
|
| | | You must tell Git/JGit not to verify the self-signed certificate in order to perform any remote Git operations.
|