final touches

This commit is contained in:
Matthew Tran 2025-02-25 00:58:21 -08:00
parent 3fc2698db9
commit 10d005fd19
4 changed files with 30 additions and 29 deletions

View File

@ -8,9 +8,9 @@ Services deployed on [matthewtran.com](https://matthewtran.com).
- p2pool (`xmrig -o matthewtran.com`)
- wireguard
- minecraft
- minecraft bedrock
- terraria
- nas (`<server>/share` on LAN)
- ~~minecraft bedrock~~
- ~~terraria~~
- nas (`<server>/<name>` on LAN)
## setup

View File

@ -96,31 +96,31 @@ services:
- ./minecraft/worlds:/home/me/worlds
cap_drop:
- ALL
minecraft_bedrock:
restart: always
build: minecraft_bedrock/.
entrypoint: ["/bin/sh", "/home/me/entry.sh"]
ports:
- "19132:19132/udp"
- "19133:19133/udp"
networks:
- game
volumes:
- ./minecraft_bedrock/worlds:/home/me/worlds
cap_drop:
- ALL
terraria:
restart: always
build: terraria/.
entrypoint: ["/bin/sh", "/home/me/entry.sh"]
ports:
- "7777:7777"
networks:
- game
volumes:
- ./terraria/worlds:/home/me/worlds
cap_drop:
- ALL
# minecraft_bedrock:
# restart: always
# build: minecraft_bedrock/.
# entrypoint: ["/bin/sh", "/home/me/entry.sh"]
# ports:
# - "19132:19132/udp"
# - "19133:19133/udp"
# networks:
# - game
# volumes:
# - ./minecraft_bedrock/worlds:/home/me/worlds
# cap_drop:
# - ALL
# terraria:
# restart: always
# build: terraria/.
# entrypoint: ["/bin/sh", "/home/me/entry.sh"]
# ports:
# - "7777:7777"
# networks:
# - game
# volumes:
# - ./terraria/worlds:/home/me/worlds
# cap_drop:
# - ALL
nas:
restart: always
build: nas/.

View File

@ -30,6 +30,7 @@ if __name__ == "__main__":
for group in PATHS:
for p in PATHS[group]:
Path(p).mkdir(parents=True, exist_ok=True)
Path(p).chmod(0o775)
shutil.chown(p, user=os.getlogin(), group=group)
# add users to nas

View File

@ -34,7 +34,7 @@ if __name__ == "__main__":
# basic setup
run([
f"uci set network.globals.ula_prefix='{WRT_ULA}/48'"
f"uci set network.globals.ula_prefix='{WRT_ULA}/48'",
"uci set dropbear.main.Interface='lan'",
"uci commit network",
"uci commit dropbear",