Wiki-Quellcode von Anpassung der Rev-Proxy Konfiguration zur Freischaltung des ControlCenter im Internet (optional)
Version 15.1 von Jonas Mayer am 2022/04/26 11:04
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | {{toc start="4"/}} | ||
2 | |||
3 | |||
4 | (% class="box infomessage" %) | ||
5 | ((( | ||
6 | (% 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. | ||
7 | ))) | ||
8 | |||
9 | |||
10 | ==== Freischaltung der Webseite per Rev-Proxy Container ==== | ||
11 | |||
12 | (% style="color:#000000" %)Im Puppeteer muss folgende Einstellung in der Datei /etc/logodidact/hiera/custom.d/rev-proxy.yaml hinterlegt werden: | ||
13 | |||
14 | (% class="box" %) | ||
15 | ((( | ||
16 | (% style="color:#000000" %)vim /etc/logodidact/hiera/custom.d/rev-proxy.yaml | ||
17 | ))) | ||
18 | |||
19 | (% style="color:#000000" %)Inhalt: | ||
20 | |||
21 | {{code language="batch"}} | ||
22 | --- | ||
23 | nginx::http2: !str off | ||
24 | {{/code}} | ||
25 | |||
26 | (% style="color:#000000" %) | ||
27 | 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. | ||
28 | |||
29 | (% class="box" %) | ||
30 | ((( | ||
31 | (% style="color:#000000" %)vim /etc/logodidact/hosts/rev-proxy/revproxy.conf | ||
32 | ))) | ||
33 | |||
34 | (% style="color:#000000" %)Inhalt: | ||
35 | |||
36 | {{code language="batch"}} | ||
37 | [ReverseProxy ctrl.ShortName.logoip.de] | ||
38 | Url https://ctrl-g1.schule.local | ||
39 | Template vhost_fwd | ||
40 | {{/code}} | ||
41 | |||
42 | |||
43 | ==== (% style="color:#000000" %)Optional: Anmeldung als Admin nach Freischaltung des ControlCenters im Internet erlauben(%%) ==== | ||
44 | |||
45 | (% style="color:#000000" %)Aus Sicherheitsgründen ist die Anmeldung mit dem Benutzerkondo "admin" standardmäßig gesperrt, sofern das LD Control Center vom Internet aus extern angesteuert wird. Um dieses Verhalten zu ändern und dem admin auch hier die Anmeldemöglichkeit zu gewähren, müssen nachfolgende Schritte durchgeführt werden. | ||
46 | |||
47 | (% style="color:#000000" %) | ||
48 | |||
49 | (% style="color:#000000" %)Erstellen Sie die Datei ctrl-g1.yaml unter /etc/logodidact/hiera/custom.d/ctrl-g1.yaml mit folgenden Inhalt. | ||
50 | |||
51 | (% class="box" %) | ||
52 | ((( | ||
53 | (% style="color:#000000" %)vim /etc/logodidact/hiera/custom.d/ctrl-g1.yaml | ||
54 | ))) | ||
55 | |||
56 | (% style="color:#000000" %)Inhalt: | ||
57 | |||
58 | {{code language="batch"}} | ||
59 | --- | ||
60 | ld_ctrl::settings: | ||
61 | ld-control-service.proxySecurityEnabled: false | ||
62 | {{/code}} | ||
63 | |||
64 | |||
65 | (% style="color:#000000" %)Die Änderungen anschließend im GIT abspeichern. | ||
66 | |||
67 | {{code language="batch"}} | ||
68 | cd /etc/logodidact | ||
69 | git add . | ||
70 | git commit -am "ctrl-g1 für Extern freichalten" | ||
71 | {{/code}} | ||
72 | |||
73 | |||
74 | (% style="color:#000000" %)Mit einem Prun im Rev-Proxy, wird die Freigaben wirkend gemacht. |