Skip to content

Commit 9359865

Browse files
committed
Documentation
1 parent adc8219 commit 9359865

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

src/site/setup_client.mkd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You may run into SNI alerts (Server Name Indication). These will manifest as fa
2828

2929
#### Java-based Clients
3030

31-
When using Java 7-based clients, SNI is enabled by default. You can disable SNI by specifying the JVM system parameter `-Djsse.enableSNIExtension=false` when your Java-based client launches.
31+
Luckily, Java 6-based clients ignore SNI alerts but when using Java 7-based clients, SNI checking is enabled by default. You can disable SNI alerts by specifying the JVM system parameter `-Djsse.enableSNIExtension=false` when your Java-based client launches.
3232

3333
For Eclipse, you can append `-Djsse.enableSNIExtension=false` to your *eclipse.ini* file.
3434

src/site/setup_express.mkd

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ as Gitblit Express is not a source distribution to be built with Maven on OpenSh
1010
Gitblit automatically adjusts itself to running on OpenShift. Repositories, users,
1111
federation proposals, setting overrides, and Groovy push scripts are stored in *OPENSHIFT_DATA_DIR*.
1212

13+
### Recommended Settings
14+
15+
You should disable the git daemon by setting *git.daemonPort=0*.
16+
1317
It is recommended to enable all RPC settings in the `web.xml` file to allow remote
1418
administration and, more importantly, configuration of your Gitblit Express
1519
installation using the Gitblit Manager.
@@ -25,16 +29,20 @@ doing:
2529
- *groovy.scriptsFolder*
2630
- *federation.proposalsFolder*
2731
- *realm.userService* (for standard users.conf)
28-
29-
Additionally, it is recommended to force your Gitblit installation to cleanup up
30-
older versions on your OpenShift filesystem to maximize available space for your
31-
repositories.
3232

33-
Append the following command to your ./openshift/action_hooks/build file:
33+
### Native Git Failures
34+
35+
Unfortunately, sometime in early 2013 RedHat changed their SSL certificate such that cloning from/pushing to Gitblit Express over https fails due to an SNI (server name indication) TLS alert. There is no known workaround for native git and https.
36+
37+
However, if your git client is JGit-based, like Eclipse/EGit, then you can workaround this problem and happily push/clone using https and OpenShift.
38+
39+
Luckily, Java 6-based clients ignore SNI alerts but when using Java 7-based clients, SNI checking is enabled by default. You can disable SNI alerts by specifying the JVM system parameter `-Djsse.enableSNIExtension=false` when your Java-based client launches.
40+
41+
For Eclipse, you can append `-Djsse.enableSNIExtension=false` to your *eclipse.ini* file.
3442

35-
rm -fr $OPENSHIFT_APP_DIR/jbossas-7.0/standalone/tmp/vfs/*
43+
### Heap and PermGen
3644

37-
Lastly, you may want to play with the heap and permgen settings of your Gitblit
45+
You may want to play with the heap and permgen settings of your Gitblit
3846
instance because the default heap for the JVM is 95 MB, which may be a little
3947
tight.
4048

0 commit comments

Comments
 (0)