Selaa lähdekoodia

README

tags/1.0.0
Robin Thoni 5 vuotta sitten
vanhempi
commit
8cfed1f583
1 muutettua tiedostoa jossa 48 lisäystä ja 0 poistoa
  1. 48
    0
      README.md

+ 48
- 0
README.md Näytä tiedosto

@@ -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
+```

Loading…
Peruuta
Tallenna