nixos-wiki-infra/README.md
2024-05-02 09:06:40 +02:00

67 lines
1.9 KiB
Markdown

# nixos-wiki-infra
This project contains the setup of https://wiki.nixos.org
## Examples
Checkout [./targets/nixos-wiki.nixos.org]() for an example terraform deployment on hetzner cloud.
## Downloading a dump of the wiki
This is useful if you want to run your own instance.
Every day an xml dump is updated here:
https://wiki.nixos.org/wikidump.xml.zst
## Restoring from a backup (wiki admins only)
```
$ systemctl stop phpfpm-mediawiki.service
$ borg-job-wiki list
$ borg-job-wiki mount u391032-sub1@u391032.your-storagebox.de:wiki.nixos.org/repo::wiki-wiki-2024-04-01T12:40:37 /tmp/restore
$ ls -la /tmp/restore/var/lib/mediawiki/backup/
$ sudo dropdb db
$ sudo -u postgres dropdb mediawiki
$ systemctl restart postgresql.service
$ sudo -u postgres pg_restore -d mediawiki < /tmp/restore/var/lib/mediawiki/backup/db
$ systemctl start phpfpm-mediawiki.service
$ ls -la /tmp/restore/var/lib/mediawiki-uploads/
$ umount /tmp/restore/
```
## FAQ:
### When logging in with "Github auth", the app shows "Act on your behalf" as a permission.
We created the Oauth app with read-only access and minimal permissions:
![](./oauth-permissions.png)
Unfortunally GitHub mis-represents this information.
Read more about this issue here: https://github.com/orgs/community/discussions/37117
## Join our Matrix
https://matrix.to/#/#wiki:nixos.org
## Roles
Currently, the users having priviledged roles on the wiki are:
### Administrators
- [Mic92](https://github.com/Mic92/)
- [JulienMalka](https://github.com/JulienMalka)
- [Lassulus](https://github.com/lassulus/)
- [samueldr](https://github.com/samueldr/)
### Moderators
- [Hexa](https://github.com/mweinelt)
- [Ryantm](https://github.com/ryantm/)
### Trusted users (can delete pages)
- [0x4A6F](https://github.com/0x4A6F)
- [jopejoe1](https://github.com/jopejoe1)
- [Artturin](https://github.com/Artturin)
- [Klinger](https://discourse.nixos.org/u/klinger)