From d71438ba965eee46aa59de9edf39f96e9fd1b9a2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:17:24 +0000 Subject: [PATCH 1/2] Update sintan1729/chhoto-url Docker tag to v7.11.7 --- apps/chhoto-url/7.11.4/docker-compose.yml | 2 +- apps/chhoto-url/7.11.6/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/chhoto-url/7.11.4/docker-compose.yml b/apps/chhoto-url/7.11.4/docker-compose.yml index 3b090cc33..312c4e86e 100644 --- a/apps/chhoto-url/7.11.4/docker-compose.yml +++ b/apps/chhoto-url/7.11.4/docker-compose.yml @@ -1,6 +1,6 @@ services: chhoto-url: - image: "sintan1729/chhoto-url:7.11.4" + image: "sintan1729/chhoto-url:7.11.7" container_name: ${CONTAINER_NAME} restart: always tty: true diff --git a/apps/chhoto-url/7.11.6/docker-compose.yml b/apps/chhoto-url/7.11.6/docker-compose.yml index bc3470e4b..312c4e86e 100644 --- a/apps/chhoto-url/7.11.6/docker-compose.yml +++ b/apps/chhoto-url/7.11.6/docker-compose.yml @@ -1,6 +1,6 @@ services: chhoto-url: - image: "sintan1729/chhoto-url:7.11.6" + image: "sintan1729/chhoto-url:7.11.7" container_name: ${CONTAINER_NAME} restart: always tty: true From 561d5c093c27726c1488b7787e54201e92475086 Mon Sep 17 00:00:00 2001 From: github-action update-app-version Date: Thu, 19 Nov 2026 21:17:45 +0000 Subject: [PATCH 2/2] Update app version [skip ci] --- apps/chhoto-url/7.11.4/docker-compose.yml | 2 +- apps/chhoto-url/7.11.6/docker-compose.yml | 2 +- apps/chhoto-url/7.11.7/.env.sample | 7 + apps/chhoto-url/7.11.7/data.yml | 150 ++++++++++++++++++++ apps/chhoto-url/7.11.7/data/.gitkeep | 1 + apps/chhoto-url/7.11.7/docker-compose.yml | 34 +++++ apps/chhoto-url/7.11.7/scripts/init.sh | 80 +++++++++++ apps/chhoto-url/7.11.7/scripts/uninstall.sh | 4 + apps/chhoto-url/7.11.7/scripts/upgrade.sh | 5 + 9 files changed, 283 insertions(+), 2 deletions(-) create mode 100644 apps/chhoto-url/7.11.7/.env.sample create mode 100644 apps/chhoto-url/7.11.7/data.yml create mode 100644 apps/chhoto-url/7.11.7/data/.gitkeep create mode 100644 apps/chhoto-url/7.11.7/docker-compose.yml create mode 100755 apps/chhoto-url/7.11.7/scripts/init.sh create mode 100755 apps/chhoto-url/7.11.7/scripts/uninstall.sh create mode 100755 apps/chhoto-url/7.11.7/scripts/upgrade.sh diff --git a/apps/chhoto-url/7.11.4/docker-compose.yml b/apps/chhoto-url/7.11.4/docker-compose.yml index 312c4e86e..3b090cc33 100644 --- a/apps/chhoto-url/7.11.4/docker-compose.yml +++ b/apps/chhoto-url/7.11.4/docker-compose.yml @@ -1,6 +1,6 @@ services: chhoto-url: - image: "sintan1729/chhoto-url:7.11.7" + image: "sintan1729/chhoto-url:7.11.4" container_name: ${CONTAINER_NAME} restart: always tty: true diff --git a/apps/chhoto-url/7.11.6/docker-compose.yml b/apps/chhoto-url/7.11.6/docker-compose.yml index 312c4e86e..bc3470e4b 100644 --- a/apps/chhoto-url/7.11.6/docker-compose.yml +++ b/apps/chhoto-url/7.11.6/docker-compose.yml @@ -1,6 +1,6 @@ services: chhoto-url: - image: "sintan1729/chhoto-url:7.11.7" + image: "sintan1729/chhoto-url:7.11.6" container_name: ${CONTAINER_NAME} restart: always tty: true diff --git a/apps/chhoto-url/7.11.7/.env.sample b/apps/chhoto-url/7.11.7/.env.sample new file mode 100644 index 000000000..fcdb4fba1 --- /dev/null +++ b/apps/chhoto-url/7.11.7/.env.sample @@ -0,0 +1,7 @@ +CONTAINER_NAME=chhoto-url-compose-check +PANEL_APP_PORT_HTTP=4567 +APP_DATA_DIR=./data +CHHOTO_PASSWORD= +CHHOTO_API_KEY= +CHHOTO_SITE_URL= +CHHOTO_REDIRECT_METHOD=TEMPORARY diff --git a/apps/chhoto-url/7.11.7/data.yml b/apps/chhoto-url/7.11.7/data.yml new file mode 100644 index 000000000..761f324eb --- /dev/null +++ b/apps/chhoto-url/7.11.7/data.yml @@ -0,0 +1,150 @@ +additionalProperties: + formFields: + - default: 4567 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: HTTP Port + labelZh: HTTP 端口 + label: + en: HTTP Port + zh: HTTP 端口 + zh-hant: HTTP 埠 + ja: HTTP ポート + ko: HTTP 포트 + ru: HTTP-порт + ms: Port HTTP + pt-br: Porta HTTP + tr: HTTP Portu + es-es: Puerto HTTP + fa: پورت HTTP + lo: ພອດ HTTP + required: true + rule: paramPort + type: number + - default: ./data + edit: true + envKey: APP_DATA_DIR + labelEn: Data Directory + labelZh: 数据目录 + label: + en: Data Directory + zh: 数据目录 + zh-hant: 資料目錄 + ja: データディレクトリ + ko: 데이터 디렉터리 + ru: Каталог данных + ms: Direktori data + pt-br: Diretorio de dados + tr: Veri dizini + es-es: Directorio de datos + fa: پوشه داده‌ها + lo: ໄດເຣັກະທໍລີຂໍ້ມູນ + required: true + type: text + - edit: true + envKey: CHHOTO_PASSWORD + labelEn: Administrator Password + labelZh: 管理员密码 + label: + en: Administrator Password + zh: 管理员密码 + zh-hant: 管理員密碼 + ja: 管理者パスワード + ko: 관리자 비밀번호 + ru: Пароль администратора + ms: Kata laluan pentadbir + pt-br: Senha do administrador + tr: Yönetici parolası + es-es: Contraseña de administrador + fa: گذرواژه مدیر + lo: ລະຫັດຜ່ານຜູ້ບໍລິຫານ + random: true + required: true + rule: paramComplexity + type: password + - edit: true + envKey: CHHOTO_API_KEY + labelEn: API Key + labelZh: API 密钥 + label: + en: API Key + zh: API 密钥 + zh-hant: API 金鑰 + ja: API キー + ko: API 키 + ru: Ключ API + ms: Kunci API + pt-br: Chave de API + tr: API anahtarı + es-es: Clave de API + fa: کلید API + lo: ຄີ API + random: true + required: true + rule: paramComplexity + type: password + - default: '' + edit: true + envKey: CHHOTO_SITE_URL + labelEn: Public URL + labelZh: 公开访问地址 + label: + en: Public URL + zh: 公开访问地址 + zh-hant: 公開存取位址 + ja: 公開 URL + ko: 공개 URL + ru: Публичный URL + ms: URL awam + pt-br: URL publico + tr: Genel URL + es-es: URL pública + fa: نشانی اینترنتی عمومی + lo: URL ສາທາລະນະ + required: false + type: text + - default: TEMPORARY + edit: true + envKey: CHHOTO_REDIRECT_METHOD + labelEn: Redirect Mode + labelZh: 跳转方式 + label: + en: Redirect Mode + zh: 跳转方式 + zh-hant: 重新導向方式 + ja: リダイレクト方式 + ko: 리디렉션 방식 + ru: Режим перенаправления + ms: Mod ubah hala + pt-br: Modo de redirecionamento + tr: Yönlendirme modu + es-es: Modo de redirección + fa: حالت تغییر مسیر + lo: ໂໝດປ່ຽນທິດທາງ + required: true + type: select + values: + - label: TEMPORARY + value: TEMPORARY + - label: PERMANENT + value: PERMANENT + - default: Asia/Shanghai + edit: true + envKey: TZ + labelEn: Timezone + labelZh: 时区 + label: + en: Timezone + zh: 时区 + zh-hant: 時區 + ja: タイムゾーン + ko: 시간대 + ru: Часовой пояс + ms: Zon waktu + pt-br: Fuso horário + tr: Saat dilimi + es-es: Zona horaria + fa: منطقه زمانی + lo: ເຂດເວລາ + required: true + type: text diff --git a/apps/chhoto-url/7.11.7/data/.gitkeep b/apps/chhoto-url/7.11.7/data/.gitkeep new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/apps/chhoto-url/7.11.7/data/.gitkeep @@ -0,0 +1 @@ + diff --git a/apps/chhoto-url/7.11.7/docker-compose.yml b/apps/chhoto-url/7.11.7/docker-compose.yml new file mode 100644 index 000000000..312c4e86e --- /dev/null +++ b/apps/chhoto-url/7.11.7/docker-compose.yml @@ -0,0 +1,34 @@ +services: + chhoto-url: + image: "sintan1729/chhoto-url:7.11.7" + container_name: ${CONTAINER_NAME} + restart: always + tty: true + user: "1000:1000" + read_only: true + cap_drop: + - ALL + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:4567" + environment: + - CHHOTO_DB_URL=/data/urls.sqlite + - CHHOTO_SQLITE_USE_WAL_MODE=True + - CHHOTO_PASSWORD=${CHHOTO_PASSWORD} + - CHHOTO_API_KEY=${CHHOTO_API_KEY} + - CHHOTO_SITE_URL=${CHHOTO_SITE_URL} + - CHHOTO_REDIRECT_METHOD=${CHHOTO_REDIRECT_METHOD} + - CHHOTO_PUBLIC_MODE=Disable + - CHHOTO_LISTEN_ADDRESS=0.0.0.0 + - CHHOTO_LISTEN_PORT=4567 + tmpfs: + - /tmp:size=16m,mode=1777,uid=1000,gid=1000 + volumes: + - "${APP_DATA_DIR}:/data" + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/chhoto-url/7.11.7/scripts/init.sh b/apps/chhoto-url/7.11.7/scripts/init.sh new file mode 100755 index 000000000..1568adc76 --- /dev/null +++ b/apps/chhoto-url/7.11.7/scripts/init.sh @@ -0,0 +1,80 @@ +#!/usr/bin/env bash +set -euo pipefail +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +export PATH + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" +ENV_FILE="${ENV_FILE:-$ROOT_DIR/.env}" + +read_env_value() { + local key="$1" + [[ -f "$ENV_FILE" ]] || return 0 + local value + value="$(sed -n "s/^${key}=//p" "$ENV_FILE" | tail -n 1)" + case "$value" in + \"*\") value="${value#\"}"; value="${value%\"}" ;; + \'*\') value="${value#\'}"; value="${value%\'}" ;; + esac + printf '%s\n' "$value" +} + +configured_value() { + local key="$1" + local default_value="$2" + local value + value="${!key:-}" + if [[ -z "$value" ]]; then + value="$(read_env_value "$key")" + fi + printf '%s\n' "${value:-$default_value}" +} + +resolve_app_path() { + local key="$1" + local raw="$2" + local clean candidate resolved current part + local -a parts=() + case "$raw" in + ""|/*|.|..|../*|*/../*|*/..) echo "unsafe ${key} path" >&2; return 1 ;; + esac + if [[ "$raw" =~ [[:cntrl:]] ]]; then + echo "unsafe ${key} path" >&2 + return 1 + fi + clean="${raw#./}" + [[ -n "$clean" ]] || { echo "unsafe ${key} path" >&2; return 1; } + command -v realpath >/dev/null 2>&1 || { echo "realpath is required" >&2; return 1; } + candidate="$ROOT_DIR/$clean" + resolved="$(realpath -m -- "$candidate")" || { echo "unsafe ${key} path" >&2; return 1; } + case "$resolved" in + "$ROOT_DIR"/*) ;; + *) echo "unsafe ${key} path" >&2; return 1 ;; + esac + current="$ROOT_DIR" + IFS='/' read -r -a parts <<< "$clean" + for part in "${parts[@]}"; do + [[ -z "$part" || "$part" == "." ]] && continue + current="$current/$part" + if [[ -L "$current" ]]; then + echo "unsafe ${key} path" >&2 + return 1 + fi + done + printf '%s\n' "$resolved" +} + +ensure_dir() { + local key="$1" + local raw + local path + raw="$(configured_value "$key" "$2")" + path="$(resolve_app_path "$key" "$raw")" + mkdir -p -- "$path" + [[ "$(resolve_app_path "$key" "$raw")" == "$path" ]] || { echo "unsafe ${key} path" >&2; return 1; } +} + +ensure_dir "APP_DATA_DIR" "./data" + +APP_DATA_DIR_VALUE="$(configured_value "APP_DATA_DIR" "./data")" +DATA_DIR="$(resolve_app_path "APP_DATA_DIR" "$APP_DATA_DIR_VALUE")" +chown -R 1000:1000 -- "$DATA_DIR" diff --git a/apps/chhoto-url/7.11.7/scripts/uninstall.sh b/apps/chhoto-url/7.11.7/scripts/uninstall.sh new file mode 100755 index 000000000..c6af20129 --- /dev/null +++ b/apps/chhoto-url/7.11.7/scripts/uninstall.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail + +docker-compose down --volumes --remove-orphans diff --git a/apps/chhoto-url/7.11.7/scripts/upgrade.sh b/apps/chhoto-url/7.11.7/scripts/upgrade.sh new file mode 100755 index 000000000..5ec28d784 --- /dev/null +++ b/apps/chhoto-url/7.11.7/scripts/upgrade.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" +exec "$SCRIPT_DIR/init.sh"