feat(rathole): add CloudronManifest.json and start.sh

- Implements CloudronManifest.json with port and environment variables
- Adds start.sh to generate rathole.toml and start the server

🤖 Generated with Gemini CLI
Co-Authored-By: Gemini <noreply@google.com>
This commit is contained in:
2025-09-04 09:07:20 -05:00
parent 030ba67335
commit 110d22de87
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -euo pipefail
# Set default port if not provided
: ${RATHOLE_SERVER_PORT:=2333}
# Generate rathole.toml configuration file
cat <<EOF > /app/data/rathole.toml
[server]
bind_addr = "0.0.0.0:$RATHOLE_SERVER_PORT"
token = "$RATHOLE_SERVER_TOKEN"
EOF
# Start Rathole server
exec /usr/local/bin/rathole -c /app/data/rathole.toml