matthewtran.com/README.md
Matthew Tran 1788061642 wip9
2025-05-04 22:36:28 -07:00

51 lines
1.7 KiB
Markdown

# matthewtran.com
Services deployed on [matthewtran.com](https://matthewtran.com).
- website
- gitea ([git.matthewtran.com](https://git.matthewtran.com))
- monerod
- p2pool (`xmrig -o matthewtran.com`)
- minecraft
- minecraft bedrock
- terraria
- nas (`<server>/<name>` on LAN)
- wireguard
## setup
1. Create `config/server.json` and run `config/provision.py`.
2. On the server to be provisioned, boot a [Fedora CoreOS installation media](https://fedoraproject.org/coreos/download?stream=stable) and run the install command.
3. To configure the OpenWrt router, run `/opt/router.py --provision <interface>` on the server. Then reboot the router and server.
4. Add the following DNS entries at the registrar.
| hosts | type | data |
| ----------------------- | ------ | ------------------------ |
| `@`, `git`, `wg`, `www` | `A` | `<public IPv4>` |
| `@`, `git`, `www` | `AAAA` | `<delegated prefix>::69` |
| `wg` | `AAAA` | `<delegated prefix>::1` |
5. Optionally, run `config/peer.py` for each WireGuard client.
## development
1. For quick iteration, run `config/update.py`. This copies over sources, rebuilds images, and restarts containers.
2. After development, it's best to reprovision (see above) with `wipe=false` for drives you want to keep. Then run `/opt/router.py` on the server and reboot.
## maintenance
logs => sudo -u game podman logs container
TODO mdadm status? backup?
Run `scripts/backup.py` and save the resultant `data.zip` somewhere. Also run the following commands for BTRFS maintenance. I should probably automate this.
```
btrfs device stats <mount>
btrfs scrub start -B <mount>
```