This repository was archived by the owner on Jan 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +58
-11
lines changed Expand file tree Collapse file tree 3 files changed +58
-11
lines changed Original file line number Diff line number Diff line change
1
+ # # system.properties
2
+ #
3
+ # each unifi instance requires a set of ports:
4
+ #
5
+ # # device inform
6
+ # unifi.http.port=8080
7
+ # # controller UI / API
8
+ # unifi.https.port=8443
9
+ # # portal redirect port for HTTP
10
+ # portal.http.port=8880
11
+ # # portal redirect port for HTTPs
12
+ # portal.https.port=8843
13
+ # # local-bound port for DB server
14
+ # unifi.db.port=27117
15
+ # # UDP port used for STUN
16
+ # unifi.stun.port=3478
17
+ #
18
+ # # the IP devices should be talking to for inform
19
+ # system_ip=a.b.c.d
20
+ # # disable mongodb journaling
21
+ # unifi.db.nojournal=false
22
+ # # extra mongod args
23
+ # unifi.db.extraargs
24
+ #
25
+ # # HTTPS options
26
+ # unifi.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA
27
+ # unifi.https.sslEnabledProtocols=TLSv1,SSLv2Hello
28
+ # unifi.https.hsts=false
29
+ # unifi.https.hsts.max_age=31536000
30
+ # unifi.https.hsts.preload=false
31
+ # unifi.https.hsts.subdomain=false
32
+ #
33
+ # Ports reserved for device redirector. There is no need to open
34
+ # firewall for these ports on controller, however do NOT set
35
+ # controller to use these ports.
36
+ #
37
+ # portal.redirector.port=8881
38
+ # portal.redirector.port.wired=8882
39
+ #
40
+ # Port used for throughput measurement.
41
+ # unifi.throughput.port=6789
42
+ #
Original file line number Diff line number Diff line change 17
17
[[ ! -L "$i" ]] && ln -s /config/"$(basename "$i")" "$i"
18
18
done
19
19
20
+ if [[ ! -e /config/data/system.properties ]]; then
21
+ cp /defaults/system.properties /config/data
22
+ fi
23
+
24
+ if [[ -n $MEM_LIMIT ]]; then
25
+ echo "*** Setting Java memory limit to $MEM_LIMIT ***"
26
+ echo "unifi.xmx=$MEM_LIMIT" >> /config/data/system.properties
27
+ fi
28
+
29
+ if [[ -n $MEM_STARTUP ]]; then
30
+ echo "*** Setting Java memory minimum to $MEM_STARTUP ***"
31
+ echo "unifi.xms=$MEM_STARTUP" >> /config/data/system.properties
32
+ fi
33
+
20
34
# permissions
21
35
chown -R abc:abc \
22
36
/config \
Original file line number Diff line number Diff line change 2
2
3
3
cd /config || exit
4
4
5
- if [ -z ${MEM_LIMIT+x} ]; then
6
- MEM_LIMIT="1024M"
7
- fi
8
-
9
- if [ -z ${MEM_STARTUP+x} ]; then
10
- exec \
11
- s6-setuidgid abc java -Xmx"${MEM_LIMIT}" -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
12
- else
13
- exec \
14
- s6-setuidgid abc java -Xms"${MEM_STARTUP}" -Xmx"${MEM_LIMIT}" -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
15
- fi
5
+ exec \
6
+ s6-setuidgid abc java -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
You can’t perform that action at this time.
0 commit comments