Self-hosted Turborepo remote cache server packaged as a Fedora RPM
with the same base + -service + -container split used by the gitea
package.
- Base: dynamic sysusers turbo-cache user, /etc/turborepo-remote-cache
config dir with config.env token template, /var/cache storage dir
- -service: native Node.js systemd unit, app installed to
%{nodejs_sitelib}/turborepo-remote-cache with pnpm-vendored
production node_modules (built via fetch-sources.sh)
- -container: Podman quadlet pinned to
docker.io/ducktors/turborepo-remote-cache:2.8.2
- Listens on 127.0.0.1:3128; runners reach via host.containers.internal
30 lines
1.0 KiB
Bash
30 lines
1.0 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
|
|
|
|
# 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
|