Skip to content

Commit 7fac0c0

Browse files
committed
added new variables
1 parent 64629d7 commit 7fac0c0

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ More information on [sshkeybox.com](http://sshkeybox.com/) or [GitHub](https://g
77

88
## Upgrade Information
99

10+
#### Following Variables are new in 2.85.03:
11+
dbPath
12+
maxActive
13+
testOnBorrow
14+
minIdle
15+
maxWait
16+
1017
#### Following Variables were removed in 2.85:
1118
auditLogAppender
1219
enableOTP
@@ -129,6 +136,35 @@ specify a external authentication module (ex: ldap-ol, ldap-ad). Edit the jaas.
129136

130137

131138

139+
### H2 DB and Connection Pool settings
140+
141+
142+
#### `dbPath=`
143+
144+
Path to the H2 DB file. Leave Blank to use default location which is ../WEB-INF/classes/keydb
145+
146+
147+
#### `maxActive=25`
148+
149+
Max connections in the connection pool
150+
151+
152+
#### `testOnBorrow=true`
153+
154+
When true, objects will be validated before being returned by the connection pool
155+
156+
157+
#### `minIdle=2`
158+
159+
The minimum number of objects allowed in the connection pool before spawning new ones
160+
161+
162+
#### `maxWait=15000`
163+
164+
The maximum amount of time (in milliseconds) to block before throwing an exception when the connection pool is exhausted
165+
166+
167+
132168
### deprecated Environment Variables (<2.85)
133169

134170

docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ keybox:
2323
- passwordComplexityRegEx=
2424
- passwordComplexityMsg=
2525
- clientIPHeader=
26-
- jaasModule=
26+
- jaasModule=
27+
- dbPath=
28+
- maxActive=
29+
- testOnBorrow=
30+
- minIdle=
31+
- maxWait=

start.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
#writing variables in configuration file, i found no better way to do this
44
echo resetApplicationSSHKey=${resetApplicationSSHKey:-false} > /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
@@ -21,6 +21,13 @@ echo passwordComplexityMsg=${passwordComplexityMsg:-'Passwords must be 8 to 20 c
2121
echo clientIPHeader=${clientIPHeader:-} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
2222
echo jaasModule=${jaasModule:-} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
2323

24+
echo dbPath=${dbPath:-} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
25+
echo maxActive=${maxActive:-25} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
26+
echo testOnBorrow=${testOnBorrow:-true} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
27+
echo minIdle=${minIdle:-2} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
28+
echo maxWait=${maxWait:-15000} >> /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/KeyBoxConfig.properties
29+
30+
2431
#link database directory
2532
rm -rf /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/keydb
2633
ln -sf /a/keydb /opt/KeyBox-jetty/jetty/keybox/WEB-INF/classes/

0 commit comments

Comments
 (0)