mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-12-16 06:33:01 +00:00
matthewtran.com
Stuff that's deployed on matthewtran.com. Currently running the following services.
- website
- gitea (git.matthewtran.com)
- monerod
- p2pool (
xmrig -o matthewtran.com) - wireguard
- minecraft
minecraft bedrockterraria
setup
- Install Ubuntu Desktop 24.04.1 LTS with TPM-backed FDE. Server currently has a bug that makes TPM-backed FDE hard.
- You may need to manually enable IPv6 on the network connection. Use
AutomaticnotAutomatic, DHCP only. - Clone this repo and
cdinto it.
- You may need to manually enable IPv6 on the network connection. Use
- Set up the server.
scripts/setup_server.py
- Set up the OpenWrt 24.10 router. Copy SSH keys first to make it easier.
scripts/setup_router.py- For each WireGuard client, run
scripts/setup_peer.py <name>. - Reboot the router and server.
- Configure, build, and start services.
- Create
website/sendgrid.keywith a SendGrid API key. - Create
terraria/password.txtif needed. - Restore backups if needed.
scripts/setup_repo.pydocker compose builddocker compose up -d
- Create
- Optionally, add additional drives. This script formats the drive as LUKS/BTRFS with the key file stored in
/opt/luksand auto-mounts on boot. Make sure to backup the key file elsewhere.scripts/setup_drive.py <drive> <mount path>
- Optionally, add the following DNS entries at the registrar.
hosts type data @,git,wg,wwwA<public IPv4>@,git,wwwAAAA<delegated prefix>::<server suffix>wgAAAA<delegated prefix>::1
backup
Run scripts/backup.py and save the resultant data.zip somewhere. I should probably automate this.
Description
Languages
Python
64.8%
HTML
13.8%
CSS
7.8%
Dockerfile
7.1%
Shell
4.1%
Other
2.4%