feat(rathole,apisix): complete Rathole and APISIX Cloudron packages
- Fix Rathole download URL to use .zip format instead of .tar.gz - Complete APISIX package using official apache/apisix:3.8.0-debian base image - Add cloudron user creation for APISIX compatibility - Both packages build successfully and follow KNELCloudron- naming convention - Rathole: reverse proxy tunnel with proper binary download - APISIX: API gateway with official Docker image base
This commit is contained in:
23
CloudronPackages/APISIX/start.sh
Normal file
23
CloudronPackages/APISIX/start.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
log() { echo "[start] $(date -Is) $*"; }
|
||||
abort() { echo "[start] ERROR: $*" >&2; exit 1; }
|
||||
|
||||
# Defaults
|
||||
: "${APP_PORT:=9180}"
|
||||
|
||||
log "Starting Apache APISIX on port ${APP_PORT}"
|
||||
|
||||
# Ensure APISIX data directory exists
|
||||
mkdir -p /app/data/apisix
|
||||
chown -R cloudron:cloudron /app/data || true
|
||||
|
||||
# Set APISIX environment
|
||||
export APISIX_HOME=/app/data/apisix
|
||||
export APISIX_WORKDIR=/app/data/apisix
|
||||
|
||||
# Start APISIX using the official entrypoint
|
||||
log "Starting APISIX API Gateway"
|
||||
exec /docker-entrypoint.sh docker-start
|
||||
|
Reference in New Issue
Block a user