Adds mediawiki app.
This commit is contained in:
49
mediawiki/versions/1/README.md
Normal file
49
mediawiki/versions/1/README.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# MediaWiki
|
||||
|
||||
MediaWiki is the wiki software that powers Wikipedia. It provides a full-featured collaborative wiki with a rich extension ecosystem.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- **MySQL** - Database for storing wiki content
|
||||
- **SMTP** - For email notifications and password resets
|
||||
|
||||
## Configuration
|
||||
|
||||
Key settings in `config.yaml`:
|
||||
|
||||
- **domain** - Where MediaWiki will be accessible
|
||||
- **storage** - Persistent volume size (default: `2Gi`)
|
||||
- **siteName** - Name of your wiki (default: `My Wiki`)
|
||||
- **adminUser** - Admin account username (default: `admin`)
|
||||
|
||||
## First-Time Setup
|
||||
|
||||
MediaWiki requires a **web-based installer** after deployment to generate `LocalSettings.php`.
|
||||
|
||||
1. Add and deploy the app:
|
||||
```bash
|
||||
wild app add mediawiki
|
||||
wild app deploy mediawiki
|
||||
```
|
||||
|
||||
2. Visit `/mw-config/` to run the web installer.
|
||||
|
||||
3. In the installer:
|
||||
- Database type: **MySQL**
|
||||
- Database host: value of `db.host` from your config
|
||||
- Database name: value of `db.name` (default: `mediawiki`)
|
||||
- Database user/password: from your config and `secrets.yaml`
|
||||
- Admin username/password: set to the values in your config and `secrets.yaml`
|
||||
|
||||
4. At the end of the installer, download `LocalSettings.php` and copy it into the pod:
|
||||
```bash
|
||||
kubectl cp LocalSettings.php mediawiki/<pod-name>:/var/www/html/LocalSettings.php
|
||||
```
|
||||
|
||||
5. The wiki is now live.
|
||||
|
||||
## Notes
|
||||
|
||||
- The `secretKey` and `upgradeKey` are auto-generated in `secrets.yaml`
|
||||
- Extensions can be installed by copying them into the pod's `/var/www/html/extensions/` directory
|
||||
- The wiki will show a "maintenance mode" page until `LocalSettings.php` is in place
|
||||
Reference in New Issue
Block a user