Wiki-Quellcode von Anpassung der Rev-Proxy Konfiguration zur Freischaltung des ControlCenter im Internet (optional)
Version 14.1 von superadmin am 2022/03/25 14:03
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | (% style="color:#000000" %)Wenn der ctrl-g1 Container für den Zugriff über WAN freigeschaltet wird, muss das unterstützte HTTP Protokoll von 2.0 auf 1.1 gewechselt werden. | ||
4 | ))) | ||
5 | |||
6 | |||
7 | (% style="color:#000000" %)Im Puppeteer muss folgende Einstellung in der Datei /etc/logodidact/hiera/custom.d/rev-proxy.yaml hinterlegt werden: | ||
8 | |||
9 | (% class="box" %) | ||
10 | ((( | ||
11 | (% style="color:#000000" %)vim /etc/logodidact/hiera/custom.d/rev-proxy.yaml | ||
12 | ))) | ||
13 | |||
14 | (% style="color:#000000" %)Inhalt: | ||
15 | |||
16 | {{code language="batch"}} | ||
17 | --- | ||
18 | nginx::http2: !str off | ||
19 | {{/code}} | ||
20 | |||
21 | (% style="color:#000000" %) | ||
22 | Weiterhin muss für die Freischaltung des ctrl-g1, im Puppeteer das Template vhost_fwd in der Datei /etc/logodidact/hosts/rev-proxy/revproxy.conf hinzugefügt werden. An dieser Stelle bitte den FQDN als Zielhost angeben. | ||
23 | |||
24 | (% class="box" %) | ||
25 | ((( | ||
26 | (% style="color:#000000" %)vim /etc/logodidact/hosts/rev-proxy/revproxy.conf | ||
27 | ))) | ||
28 | |||
29 | (% style="color:#000000" %)Inhalt: | ||
30 | |||
31 | {{code language="batch"}} | ||
32 | [ReverseProxy ctrl.ShortName.logoip.de] | ||
33 | Url https://ctrl-g1.schule.local | ||
34 | Template vhost_fwd | ||
35 | {{/code}} | ||
36 | |||
37 | (% style="color:#000000" %) | ||
38 | |||
39 | (% style="color:#000000" %)Erstellen Sie die Datei ctrl-g1.yaml unter /etc/logodidact/hiera/custom.d/ctrl-g1.yaml mit folgenden Inhalt. | ||
40 | |||
41 | (% class="box" %) | ||
42 | ((( | ||
43 | (% style="color:#000000" %)vim /etc/logodidact/hiera/custom.d/ctrl-g1.yaml | ||
44 | ))) | ||
45 | |||
46 | (% style="color:#000000" %)Inhalt: | ||
47 | |||
48 | {{code language="batch"}} | ||
49 | --- | ||
50 | ld_ctrl::settings: | ||
51 | ld-control-service.proxySecurityEnabled: false | ||
52 | {{/code}} | ||
53 | |||
54 | |||
55 | (% style="color:#000000" %)Die Änderungen anschließend im GIT abspeichern. | ||
56 | |||
57 | {{code language="batch"}} | ||
58 | cd /etc/logodidact | ||
59 | git add . | ||
60 | git commit -am "ctrl-g1 für Extern freichalten" | ||
61 | {{/code}} | ||
62 | |||
63 | |||
64 | (% style="color:#000000" %)Mit einem Prun im Rev-Proxy, wird die Freigaben wirkend gemacht. | ||
65 | |||
66 |