Files
turborepo-remote-cache/config.env
T
zpericic 37962b2ba8 Fix cache storage landing in ephemeral /tmp
Upstream joins STORAGE_PATH onto os.tmpdir() unless
STORAGE_PATH_USE_TMP_FOLDER=false, even for absolute paths, so the
container wrote artifacts to /tmp/app/cache instead of the bind mount
and lost them on every restart. Set the flag in both config.env
(native service) and the quadlet, and chown the host cache dir to the
container user via the :U volume option.
2026-08-02 16:16:14 +02:00

35 lines
1.2 KiB
Bash

# Turborepo Remote Cache server configuration
# =============================================
#
# This file is loaded by both the native systemd service and the
# Podman quadlet as an EnvironmentFile. Edit and restart the service:
#
# systemctl restart turborepo-remote-cache.service
#
# See https://github.com/ducktors/turborepo-remote-cache for all options.
# Shared secret that clients (turbo CLI, CI runners) must present.
# Generate with: openssl rand -hex 32
TURBO_TOKEN=CHANGE_ME
# Storage provider. Keep "local" for filesystem-backed cache.
STORAGE_PROVIDER=local
# Path inside the service/container where cached artifacts live.
# The native service writes here directly; the container mounts
# /var/cache/turborepo-remote-cache from the host to this path.
STORAGE_PATH=/var/cache/turborepo-remote-cache
# Use STORAGE_PATH as-is. Without this the server joins STORAGE_PATH
# onto os.tmpdir() (even when absolute) and the cache lands in /tmp,
# which is wiped on every restart.
STORAGE_PATH_USE_TMP_FOLDER=false
# Listen address and port. Bound to localhost by default — runners
# reach the host via host.containers.internal (Podman) on this port.
HOST=127.0.0.1
PORT=3128
# Log level: fatal, error, warn, info, debug, trace
LOG_LEVEL=info