Update readme.md

This commit is contained in:
Lukas_Weberruß 2025-07-17 11:56:23 +00:00
parent 47c362b62e
commit adf144ab30

View file

@ -1,6 +1,6 @@
# Umfassende Anleitung: Moodle auf STACKIT Cloud Foundry
Diese Anleitung dokumentiert den gesamten Prozess, um eine Moodle-Instanz auf STACKIT Cloud Foundry zu deployen. Sie umfasst die Ersteinrichtung der CF-Umgebung, die Vorbereitung der Moodle-Anwendung inklusive aller notwendigen Workarounds für den Proxy- und CDN-Betrieb sowie die Konfiguration für eine externe Datenbank, S3-Dateispeicher, Redis-Caching und Autoskalierung.
Diese Anleitung dokumentiert den gesamten Prozess, um eine Moodle-Instanz auf STACKIT Cloud Foundry zu deployen. Sie umfasst die Ersteinrichtung der CF-Umgebung, die Vorbereitung der Moodle-Anwendung inklusive aller notwendigen Anpassungen für den Proxy- und CDN-Betrieb sowie die Konfiguration für eine externe Datenbank, S3-Dateispeicher, Redis-Caching und Autoskalierung.
## Architektur
@ -55,7 +55,7 @@ Nach der Installation des CF CLI müssen Sie sich bei der STACKIT Cloud Foundry
* **Login-Befehl:**
```bash
cf login -a [https://api.cf.eu01.stackit.cloud](https://api.cf.eu01.stackit.cloud) --sso
cf login -a https://api.cf.eu01.stackit.cloud --sso
```
### 1.3. Organisation und Space erstellen
@ -86,17 +86,17 @@ Eine "Organisation" ist der höchste Mandant, ein "Space" eine Umgebung (z.B. En
```bash
# Moodle 5.0.1 herunterladen und entpacken
wget [https://packaging.moodle.org/stable500/moodle-5.0.1.tgz](https://packaging.moodle.org/stable500/moodle-5.0.1.tgz)
wget https://packaging.moodle.org/stable500/moodle-5.0.1.tgz
tar -xzf moodle-5.0.1.tgz
# Redis-Plugin für Moodle installieren
wget [https://moodle.org/plugins/download.php/29037/cachestore_redis_moodle41_2022112800.zip](https://moodle.org/plugins/download.php/29037/cachestore_redis_moodle41_2022112800.zip)
wget https://moodle.org/plugins/download.php/29037/cachestore_redis_moodle41_2022112800.zip
unzip cachestore_redis_moodle41_2022112800.zip
mv redis moodle/cache/stores/
# S3 Object File System Plugin installieren
cd moodle
git clone [https://github.com/catalyst/moodle-tool_objectfs.git](https://github.com/catalyst/moodle-tool_objectfs.git) admin/tool/objectfs
git clone https://github.com/catalyst/moodle-tool_objectfs.git admin/tool/objectfs
cd ..
```
@ -164,7 +164,7 @@ cf create-user-provided-service moodle-s3-credentials -p '{
"access_key": "DEIN_ZUVOR_GENERIERTER_ACCESS_KEY",
"secret_key": "DEIN_ZUVOR_GENERIERTER_SECRET_KEY",
"bucket": "DEIN_ZUVOR_GENERIERTES_BUCKET",
"endpoint": "[https://s3.eu01.stackit.cloud](https://s3.eu01.stackit.cloud)"
"endpoint": "https://object.storage.eu01.onstackit.cloud/"
}'
```
@ -182,14 +182,14 @@ applications:
- name: moodle
memory: 2G
disk_quota: 2G
buildpack: [https://github.com/cloudfoundry/php-buildpack.git](https://github.com/cloudfoundry/php-buildpack.git)
buildpack: https://github.com/cloudfoundry/php-buildpack.git
path: moodle
routes:
- route: moodle.cf.demo.stackit.rocks
- route: moodle.demo.stackit.rocks
env:
USE_CDN: 'true'
WWW_ROOT: "[https://moodle.demo.stackit.rocks](https://moodle.demo.stackit.rocks)"
WWW_ROOT: "https://moodle.demo.stackit.rocks"
BP_PHP_LOG_LEVEL: WARNING
services:
- moodle-demo-mariadb
@ -222,13 +222,13 @@ applications:
- name: moodle
memory: 2G
disk_quota: 2G
buildpack: [https://github.com/cloudfoundry/php-buildpack.git](https://github.com/cloudfoundry/php-buildpack.git)
buildpack: https://github.com/cloudfoundry/php-buildpack.git
path: moodle
routes:
- route: moodle.cf.demo.stackit.rocks
env:
USE_CDN: 'false'
WWW_ROOT: "[https://moodle.cf.demo.stackit.rocks](https://moodle.cf.demo.stackit.rocks)"
WWW_ROOT: "https://moodle.cf.demo.stackit.rocks"
BP_PHP_LOG_LEVEL: WARNING
services:
- moodle-demo-mariadb