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`) - p2pool (`xmrig -o matthewtran.com`)
- wireguard - wireguard
- minecraft - minecraft
- minecraft bedrock - ~~minecraft bedrock~~
- terraria - ~~terraria~~
- nas (`<server>/share` on LAN) - nas (`<server>/<name>` on LAN)
## setup ## setup

View File

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

View File

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

View File

@ -34,7 +34,7 @@ if __name__ == "__main__":
# basic setup # basic setup
run([ 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 set dropbear.main.Interface='lan'",
"uci commit network", "uci commit network",
"uci commit dropbear", "uci commit dropbear",