fix(rathole): update package to use correct Cloudron manifest format and fix configuration

- Update CloudronManifest.json to use modern format with proper ID, health check, and metadata
- Fix Dockerfile to follow Cloudron conventions (/app/code, /app/data structure)
- Correct Rathole configuration format (default_token instead of token, add services section)
- Fix start.sh to use proper --server flag syntax
- Add health check endpoint on port 8080
- Create comprehensive build notes documentation
- Successfully build and test package - both ports 2333 (Rathole) and 8080 (health) working

🤖 Generated with assistance from OpenCode for code optimization and testing
This commit is contained in:
2025-09-04 10:12:38 -05:00
parent 4bc1418831
commit d74cdc091b
4 changed files with 241 additions and 49 deletions

View File

@@ -1,32 +1,33 @@
{
"id": "rathole",
"id": "com.rathole.cloudron",
"title": "Rathole",
"description": "A secure, stable, and high-performance reverse proxy for NAT traversal.",
"author": "Rathole Organization",
"description": "A secure, stable, and high-performance reverse proxy for NAT traversal, written in Rust.",
"tagline": "Secure NAT traversal reverse proxy",
"icon": "https://cdn.cloudron.io/icons/rathole.svg",
"main": {
"type": "docker",
"image": "cloudron/base:4.2.0",
"ports": {
"2333/tcp": "Rathole Server Port"
},
"healthCheck": {
"url": "http://localhost:2333"
}
"version": "0.5.0",
"healthCheckPath": "/health",
"httpPort": 8080,
"tcpPorts": {
"2333": "Rathole Server Port"
},
"addons": {
"localstorage": {}
},
"manifestVersion": 2,
"addons": {},
"environment": {
"RATHOLE_SERVER_TOKEN": {
"type": "string",
"description": "The mandatory service token for Rathole server.",
"required": true
},
"RATHOLE_SERVER_PORT": {
"type": "string",
"description": "The port Rathole server will listen on. Default is 2333.",
"required": false,
"default": "2333"
}
}
"website": "https://github.com/rathole-org/rathole",
"contactEmail": "support@cloudron.io",
"icon": "logo.png",
"tags": [
"proxy",
"networking",
"nat-traversal",
"tunnel"
],
"env": {
"RATHOLE_SERVER_TOKEN": "changeme",
"RATHOLE_SERVER_PORT": "2333"
},
"configurePath": "/",
"minBoxVersion": "7.0.0",
"postInstallMessage": "Rathole has been successfully installed. Configure your server token and port settings as needed. The service listens on TCP port 2333 by default."
}