Wiki-Quellcode von Anpassung der Rev-Proxy Konfiguration zur Freischaltung des ControlCenter im Internet (optional)
Version 10.1 von superadmin am 2022/03/25 13:21
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | (% style="color:#000000" %)Wenn Controller Container für den Zugriff über WAN freigeschaltet wird, dann muss das unterstützte HTTP Protokoll von 2.0 auf 1.1 gewechselt werden. | ||
4 | ))) | ||
5 | |||
6 | |||
7 | (% style="color:#000000" %)In Puppeteer muss die Einstellung nginx::http2 in der Datei /etc/logodidact/hiera/custom.d/rev-proxy.yaml wie folgt angepasst werden: | ||
8 | |||
9 | {{code language="batch"}} | ||
10 | vim /etc/logodidact/hiera/custom.d/rev-proxy.yaml | ||
11 | nginx::http2: !str off | ||
12 | {{/code}} | ||
13 | |||
14 | (% style="color:#000000" %) | ||
15 | Weiterhin im Puppeteer muss das Template vhost_fwd in der Datei /etc/logodidact/hosts/rev-proxy/revproxy.conf zum Abschnitt für die ControlCenter-Freischaltung hinzugefügt werden. Außerdem den FQDN als Zielhost angeben: | ||
16 | |||
17 | {{code language="batch"}} | ||
18 | vim /etc/logodidact/hosts/rev-proxy/revproxy.conf | ||
19 | |||
20 | [ReverseProxy ctrl.ShortName.logoip.de] | ||
21 | Url https://ctrl-g1.schule.local | ||
22 | Template vhost_fwd | ||
23 | {{/code}} | ||
24 | |||
25 | (% style="color:#000000" %) | ||
26 | |||
27 | (% style="color:#000000" %) Nun muss noch eine ctrl-g1.yaml erstellt werden, um es mit diesem Eintrag zu ergänzen. | ||
28 | |||
29 | {{code language="batch"}} | ||
30 | vim /etc/logodidact/hiera/custom.d/ctrl-g1.yaml | ||
31 | |||
32 | --- | ||
33 | ld_ctrl::settings: | ||
34 | ld-control-service.proxySecurityEnabled: false | ||
35 | {{/code}} | ||
36 | |||
37 | |||
38 | |||
39 | Die Änderungen anschließend mit dem Kommando git commit abspeichern. | ||
40 | |||
41 | {{code language="batch"}} | ||
42 | cd /etc/logodidact | ||
43 | |||
44 | git add . | ||
45 | git commit -am "CTRL für Extern freichalten" | ||
46 | {{/code}} | ||
47 | |||
48 | |||
49 | (% style="color:#000000" %)Zu guter letzt muss im rev-proxy ein prun ausgeführt werden. | ||
50 | |||
51 |