mirror of
https://github.com/telemt/telemt.git
synced 2026-07-13 15:30:20 +03:00
Compare commits
2 Commits
0a1d7f4cf9
..
3.3.29
| Author | SHA1 | Date | |
|---|---|---|---|
| 042d4fd612 | |||
| bbc69f945e |
@@ -130,14 +130,12 @@ 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: |
|
||||||
@@ -145,27 +143,19 @@ 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..."
|
echo "⬇️ Downloading musl toolchain from Telemt GitHub Releases..."
|
||||||
|
|
||||||
download() {
|
curl -fL \
|
||||||
url="$1"
|
--retry 5 \
|
||||||
echo "→ trying $url"
|
--retry-delay 3 \
|
||||||
curl -fL \
|
--connect-timeout 10 \
|
||||||
--retry 5 \
|
--max-time 120 \
|
||||||
--retry-delay 3 \
|
-o "$ARCHIVE" "$URL"
|
||||||
--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"
|
||||||
|
|||||||
@@ -39,8 +39,6 @@ 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
|
||||||
|
|
||||||
|
|||||||
+2
-7
@@ -6,8 +6,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "127.0.0.1:9090:9090" # Metrics
|
- "127.0.0.1:9090:9090"
|
||||||
- "127.0.0.1:9091:9091" # API
|
- "127.0.0.1:9091:9091"
|
||||||
# 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,8 +29,3 @@ services:
|
|||||||
nofile:
|
nofile:
|
||||||
soft: 65536
|
soft: 65536
|
||||||
hard: 65536
|
hard: 65536
|
||||||
logging:
|
|
||||||
driver: "json-file"
|
|
||||||
options:
|
|
||||||
max-size: "10m"
|
|
||||||
max-file: "3"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user