feat: add game server infrastructure and documentary improvements
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
- Add Docker Compose for OpenFusion (FusionFall), MapleStory 2, and Minecraft FTB Infinity Evolved game servers - Add MapleStory 2 multi-service compose (MySQL, World, Login, Web, Game) - Add OpenFusion Dockerfile and configuration files - Fix CMS Dockerfile, web Dockerfile, and documentary components - Add root layout, globals.css, not-found page, and text formatting utils - Update .gitignore to exclude large game server repos and data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
21
servers/openfusion/docker-entrypoint.sh
Normal file
21
servers/openfusion/docker-entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
CONFIG="/usr/src/app/config.ini"
|
||||
|
||||
# Override shard IP (the address clients connect to after login)
|
||||
if [ -n "$SHARD_IP" ]; then
|
||||
sed -i "s/^ip=.*/ip=$SHARD_IP/" "$CONFIG"
|
||||
fi
|
||||
|
||||
# Override MOTD
|
||||
if [ -n "$MOTD" ]; then
|
||||
sed -i "s/^motd=.*/motd=$MOTD/" "$CONFIG"
|
||||
fi
|
||||
|
||||
# Override account level
|
||||
if [ -n "$ACCOUNT_LEVEL" ]; then
|
||||
sed -i "s/^accountlevel=.*/accountlevel=$ACCOUNT_LEVEL/" "$CONFIG"
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/fusion
|
||||
Reference in New Issue
Block a user