Files
KNELProductionContainers/CloudronPackages/APISIX/start.sh
ReachableCEO e32e9288d1 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
2025-10-17 10:19:59 -05:00

24 lines
546 B
Bash

#!/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