4 コミット

作成者 SHA1 メッセージ 日付
  Robin Thoni d63db2f0f1
upgraded to 7.2.97 7ヶ月前
  Robin Thoni 8a4d1219ed
limit mongodb cache 7ヶ月前
  Robin Thoni 3069393ea5 open 8080 port for local network 5年前
  Robin Thoni 8cfed1f583 README 5年前
4個のファイルの変更53行の追加4行の削除
  1. 48
    0
      README.md
  2. 2
    1
      docker-compose.yml
  3. 2
    2
      unifi-controller/Dockerfile
  4. 1
    1
      unifi-controller/docker-build.sh

+ 48
- 0
README.md ファイルの表示

@@ -0,0 +1,48 @@
1
+Apache config:
2
+
3
+unifi.example.com.conf:
4
+```
5
+<IfModule mod_ssl.c>
6
+    <VirtualHost *:80>
7
+        ServerName unifi.example.com
8
+        Redirect permanent / https://unifi.example.com/
9
+        <Location /inform>
10
+          ProxyPass http://127.0.0.1:8080/inform
11
+          ProxyPassReverse http://127.0.0.1:8080/inform
12
+        </Location>
13
+    </VirtualHost>
14
+    <VirtualHost *:443>
15
+        Include sites-available/unifi.example.com.include
16
+
17
+        SSLEngine on
18
+        SSLCertificateFile /etc/ssl/private/unifi.example.com.crt
19
+        SSLCertificateKeyFile /etc/ssl/private/unifi.example.com.key
20
+        SSLCertificateChainFile /etc/ssl/private/unifi.example.com-chain.crt
21
+    </VirtualHost>
22
+</IfModule>
23
+<IfModule !mod_ssl.c>
24
+    <VirtualHost *:80>
25
+        Include sites-available/unifi.example.com.include
26
+        <Location /inform>
27
+          ProxyPass http://127.0.0.1:8080/inform
28
+          ProxyPassReverse http://127.0.0.1:8080/inform
29
+        </Location>
30
+    </VirtualHost>
31
+</IfModule>
32
+```
33
+
34
+unifi.example.com.include:
35
+```
36
+ServerName unifi.example.com
37
+ServerAlias unifi.example.com
38
+ProxyPreserveHost On
39
+ProxyRequests off
40
+ProxyPass /wss wss://127.0.0.1:8443/wss retry=0
41
+ProxyPassReverse /wss wss://127.0.0.1:8443/wss
42
+ProxyPass / https://127.0.0.1:8443/
43
+ProxyPassReverse / https://127.0.0.1:8443/
44
+SSLProxyVerify none
45
+SSLProxyCheckPeerName off
46
+SSLProxyCheckPeerCN off
47
+SSLProxyCheckPeerExpire off
48
+```

+ 2
- 1
docker-compose.yml ファイルの表示

@@ -16,6 +16,7 @@ services:
16 16
                     - mongodb.unfi-controller.internal.docker
17 17
         volumes:
18 18
             - ./data/mongodb/db:/data/db
19
+        command: --wiredTigerCacheSizeGB 0.5
19 20
     unifi-controller:
20 21
         << : *common
21 22
         build: ./unifi-controller
@@ -30,7 +31,7 @@ services:
30 31
             - ./data/unfi-controller/cert:/unifi/cert
31 32
             - ./data/unfi-controller/init:/unifi/init.d
32 33
         ports:
33
-            - "127.0.0.1:8080:8080"
34
+            - "0.0.0.0:8080:8080"
34 35
             - "127.0.0.1:8443:8443"
35 36
             - "127.0.0.1:8880:8880"
36 37
             - "127.0.0.1:8843:8843"

+ 2
- 2
unifi-controller/Dockerfile ファイルの表示

@@ -4,8 +4,6 @@ LABEL maintainer="Jacob Alberty <jacob.alberty@foundigital.com>"
4 4
 
5 5
 ARG DEBIAN_FRONTEND=noninteractive
6 6
 
7
-ENV PKGURL=https://dl.ubnt.com/unifi/5.10.17/unifi_sysvinit_all.deb
8
-
9 7
 ENV BASEDIR=/usr/lib/unifi \
10 8
     DATADIR=/unifi/data \
11 9
     LOGDIR=/unifi/log \
@@ -66,6 +64,8 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
66 64
  && chmod +x /usr/local/bin/docker-healthcheck.sh \
67 65
  && chmod +x /usr/local/bin/docker-build.sh
68 66
 
67
+ENV PKGURL=https://dl.ubnt.com/unifi/7.2.97/unifi_sysvinit_all.deb
68
+
69 69
 # Push installing openjdk-8-jre first, so that the unifi package doesn't pull in openjdk-7-jre as a dependency? Else uncomment and just go with openjdk-7.
70 70
 RUN set -ex \
71 71
  && mkdir -p /usr/share/man/man1/ \

+ 1
- 1
unifi-controller/docker-build.sh ファイルの表示

@@ -47,7 +47,7 @@ rm -f ./unifi.deb
47 47
 chown -R unifi:unifi /usr/lib/unifi
48 48
 rm -rf /var/lib/apt/lists/*
49 49
 
50
-rm -rf ${ODATADIR} ${OLOGDIR}
50
+rm -rf ${ODATADIR} ${OLOGDIR} ${BASEDIR}/*
51 51
 mkdir -p ${DATADIR} ${LOGDIR}
52 52
 ln -s ${DATADIR} ${BASEDIR}/data
53 53
 ln -s ${RUNDIR} ${BASEDIR}/run

読み込み中…
キャンセル
保存