4 Revīzijas

Autors SHA1 Ziņojums Datums
  Robin Thoni d63db2f0f1
upgraded to 7.2.97 8 mēnešus atpakaļ
  Robin Thoni 8a4d1219ed
limit mongodb cache 8 mēnešus atpakaļ
  Robin Thoni 3069393ea5 open 8080 port for local network 5 gadus atpakaļ
  Robin Thoni 8cfed1f583 README 5 gadus atpakaļ
4 mainītis faili ar 53 papildinājumiem un 4 dzēšanām
  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 Parādīt failu

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 Parādīt failu

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

+ 2
- 2
unifi-controller/Dockerfile Parādīt failu

4
 
4
 
5
 ARG DEBIAN_FRONTEND=noninteractive
5
 ARG DEBIAN_FRONTEND=noninteractive
6
 
6
 
7
-ENV PKGURL=https://dl.ubnt.com/unifi/5.10.17/unifi_sysvinit_all.deb
8
-
9
 ENV BASEDIR=/usr/lib/unifi \
7
 ENV BASEDIR=/usr/lib/unifi \
10
     DATADIR=/unifi/data \
8
     DATADIR=/unifi/data \
11
     LOGDIR=/unifi/log \
9
     LOGDIR=/unifi/log \
66
  && chmod +x /usr/local/bin/docker-healthcheck.sh \
64
  && chmod +x /usr/local/bin/docker-healthcheck.sh \
67
  && chmod +x /usr/local/bin/docker-build.sh
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
 # 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.
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
 RUN set -ex \
70
 RUN set -ex \
71
  && mkdir -p /usr/share/man/man1/ \
71
  && mkdir -p /usr/share/man/man1/ \

+ 1
- 1
unifi-controller/docker-build.sh Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt