Compare commits

..

8 Commits

Author SHA1 Message Date
Frew777 0a1d7f4cf9 Merge 490a52eb87 into 03c9a2588f 2026-03-22 16:56:59 +09:00
Frew777 490a52eb87 Merge branch 'flow' into fix/api-docker-connection 2026-03-21 22:42:10 +03:00
Frew777 167b192cbe Clarify API access comments in config.toml
Updated comments for clarity regarding API access configuration.
2026-03-21 21:09:12 +03:00
Frew777 07bf3ade5a Merge branch 'flow' into fix/api-docker-connection 2026-03-21 20:49:14 +03:00
Alexey 2648ded530 Update config.toml 2026-03-21 10:32:43 +03:00
Alexey 25847c9a00 Merge branch 'flow-sec' into fix/api-docker-connection 2026-03-17 11:24:57 +03:00
Frew777 bd740e6088 whitelist docker network range (172.16.0.0/12) 2026-03-17 01:45:45 +03:00
Frew777 8175df059d Update docker-compose to include logging and api port
Added API port
Added logging configuration with json-file driver.
2026-03-17 01:40:26 +03:00
3 changed files with 28 additions and 11 deletions
+19 -9
View File
@@ -130,12 +130,14 @@ jobs:
pkg-config \ pkg-config \
curl curl
# 💾 cache toolchain
- uses: actions/cache@v4 - uses: actions/cache@v4
if: matrix.target == 'aarch64-unknown-linux-musl' if: matrix.target == 'aarch64-unknown-linux-musl'
with: with:
path: ~/.musl-aarch64 path: ~/.musl-aarch64
key: musl-toolchain-aarch64-v1 key: musl-toolchain-aarch64-v1
# 🔥 надёжная установка
- name: Install aarch64 musl toolchain - name: Install aarch64 musl toolchain
if: matrix.target == 'aarch64-unknown-linux-musl' if: matrix.target == 'aarch64-unknown-linux-musl'
run: | run: |
@@ -143,19 +145,27 @@ jobs:
TOOLCHAIN_DIR="$HOME/.musl-aarch64" TOOLCHAIN_DIR="$HOME/.musl-aarch64"
ARCHIVE="aarch64-linux-musl-cross.tgz" ARCHIVE="aarch64-linux-musl-cross.tgz"
URL="https://github.com/telemt/telemt/releases/download/toolchains/$ARCHIVE"
if [ -x "$TOOLCHAIN_DIR/bin/aarch64-linux-musl-gcc" ]; then if [ -x "$TOOLCHAIN_DIR/bin/aarch64-linux-musl-gcc" ]; then
echo "✅ MUSL toolchain already installed" echo "✅ musl toolchain already installed"
else else
echo "⬇️ Downloading musl toolchain from Telemt GitHub Releases..." echo "⬇️ downloading musl toolchain..."
curl -fL \ download() {
--retry 5 \ url="$1"
--retry-delay 3 \ echo "→ trying $url"
--connect-timeout 10 \ curl -fL \
--max-time 120 \ --retry 5 \
-o "$ARCHIVE" "$URL" --retry-delay 3 \
--connect-timeout 10 \
--max-time 120 \
-o "$ARCHIVE" "$url" && return 0
return 1
}
download "https://musl.cc/$ARCHIVE" || \
download "https://more.musl.cc/$ARCHIVE" || \
{ echo "❌ failed to download musl toolchain"; exit 1; }
mkdir -p "$TOOLCHAIN_DIR" mkdir -p "$TOOLCHAIN_DIR"
tar -xzf "$ARCHIVE" --strip-components=1 -C "$TOOLCHAIN_DIR" tar -xzf "$ARCHIVE" --strip-components=1 -C "$TOOLCHAIN_DIR"
+2
View File
@@ -39,6 +39,8 @@ port = 443
enabled = true enabled = true
listen = "0.0.0.0:9091" listen = "0.0.0.0:9091"
whitelist = ["127.0.0.0/8"] whitelist = ["127.0.0.0/8"]
# Allow API access from Docker bridge subnets
# whitelist = ["127.0.0.0/8", "172.16.0.0/12"]
minimal_runtime_enabled = false minimal_runtime_enabled = false
minimal_runtime_cache_ttl_ms = 1000 minimal_runtime_cache_ttl_ms = 1000
+7 -2
View File
@@ -6,8 +6,8 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "443:443" - "443:443"
- "127.0.0.1:9090:9090" - "127.0.0.1:9090:9090" # Metrics
- "127.0.0.1:9091:9091" - "127.0.0.1:9091:9091" # API
# Allow caching 'proxy-secret' in read-only container # Allow caching 'proxy-secret' in read-only container
working_dir: /run/telemt working_dir: /run/telemt
volumes: volumes:
@@ -29,3 +29,8 @@ services:
nofile: nofile:
soft: 65536 soft: 65536
hard: 65536 hard: 65536
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"