non-root smb share

This commit is contained in:
Matthew Tran
2025-02-21 01:09:27 -08:00
parent 077178cbe0
commit d693e31c85
6 changed files with 60 additions and 16 deletions
+4 -2
View File
@@ -10,7 +10,7 @@ Services deployed on [matthewtran.com](https://matthewtran.com).
- minecraft
- minecraft bedrock
- terraria
- nas (LAN only)
- nas (`<server>/share` on LAN)
## setup
@@ -26,12 +26,14 @@ Services deployed on [matthewtran.com](https://matthewtran.com).
5. Configure, build, and start services.
- Create `website/sendgrid.key` with a [SendGrid API key](https://app.sendgrid.com/settings/api_keys).
- Create `terraria/password.txt` if needed.
- Create `nas/mounts.json` which contains a list of `"<name>":"<directory>"` for the SMB share.
- Create `nas/users.json` which contains a list of `"<user>":"<password>"` for the SMB share.
- `scripts/setup_repo.py`
- Restore backups if needed. Make sure to set correct ownership. For example, `chown -R 2000:2000 website/gitea`.
- `docker compose build`
- `docker compose up -d`
6. Optionally, add additional drives. This script formats the drive as LUKS/BTRFS with the key file stored in `/opt/luks` and auto-mounts on boot. Make sure to backup the key file elsewhere.
- `scripts/setup_drive.py <drive> <mount path>`
- `scripts/setup_drive.py <drive> <mount>`
7. Optionally, run `scripts/setup_peer.py <name>` for each WireGuard client.
8. Optionally, add the following DNS entries at the registrar.
| hosts | type | data |