Files
server/.env.example
Gabe Cook a0beb2abf3 feat: let admins bypass BLOCK_CUSTOM_APPS (#1015)
Admins can already point the system apps repo at any URL, so blocking
their uploads and custom repos adds no protection. BLOCK_CUSTOM_APPS now
only restricts non-admin users, matching the request in #1011.

The block check now runs after RequireLogin so it can see the user,
scheduled refreshes skip only non-admin repos, and templates use a
per-user CustomAppsAllowed flag.
2026-11-13 03:15:38 -06:00

73 lines
3.1 KiB
Bash

# These are OPTIONAL settings. The server should work without setting any of these options.
# To use any of these settings, copy this file to .env and then make edits.
# This is the port that docker will expose externally. default is 8000
# SERVER_PORT=443
# PRODUCTION=true
# LOG_LEVEL=INFO
# End the URL with #branch-name to use a branch other than the default
# SYSTEM_APPS_REPO="https://github.com/tronbyt/apps.git"
# Source of app catalog install counts and opt-in community app stats.
# Default is "https://cloud.heyniblet.com". Set to "" to disable both.
# NIBLET_CLOUD_URL="https://cloud.heyniblet.com"
# default set to 750MB
# MAX_REPO_SIZE_MB=300
# User Registration Settings
# Set to "true" to enable open user registration (anyone can create an account)
# Set to "false" (default) to only allow admin users to create new accounts
# ENABLE_USER_REGISTRATION=true
# MAX_USERS=100 # Default is 100
# Custom Apps
# Set to "true" to prevent non-admin users from uploading apps or configuring custom apps repositories
# BLOCK_CUSTOM_APPS=false
# App HTTP Requests
# Set to "true" to block apps from requesting private, loopback, and link-local addresses (e.g. 192.168.1.1, localhost)
# Recommended when running untrusted apps
# PIXLET_HTTP_BLOCK_PRIVATE_IPS=false
# PIXLET_HTTP_TIMEOUT=5s
# PIXLET_HTTP_MAX_RESPONSE_MB=20
# Single-User Auto-Login Mode
# Set to "true" to automatically log in when exactly 1 user exists (from private networks only)
# Only works from: localhost, 192.168.x.x, 10.x.x.x, 172.16.x.x
# Public IPs still require authentication
# SINGLE_USER_AUTO_LOGIN=true
# Firmware Repositories
# Repositories to query and download managed firmware releases from.
# FIRMWARE_REPO="https://github.com/tronbyt/firmware-esp32"
# TRONBERRY_REPO="https://github.com/tronbyt/tronberry"
# Sync the draft "alpha" firmware release. Requires GITHUB_TOKEN with firmware repo access.
# FIRMWARE_INCLUDE_ALPHA=true
# Version / Git Metadata (optional overrides for custom containers or forks)
# TRONBYT_BRANCH="main"
# TRONBYT_REPO_URL="https://github.com/tronbyt/server"
# TRONBYT_COMMIT=""
# ENABLE_PPROF=false
# Multi-Chunk WebP Buffer Limits (bytes)
# TRONBYT_MAX_CHUNK_SIZE_ESP=450000 # Default 450 KB for all ESP devices (Tidbyt Gen 1, Gen 2, ESP32, S3 variants, MatrixPortal)
# TRONBYT_MAX_CHUNK_SIZE_RPI=5242880 # Default 5 MB for Raspberry Pi / Tronberry
# Screeny Studio External App Provider (Optional)
# Enables external patches and 30 FPS multi-chunk streaming from screeny-studio
# SCREENY_STUDIO_URL="http://screeny-studio:8787"
# SCREENY_FPS=30
# 128x64 display upscaling filter:
# Options: bicubic (smooth Catmull-Rom gradients for 128x64 LEDs), scale2x (sharp EPX edges for pixel art & text), bilinear, nearest
# SCREENY_SCALE_FILTER="bicubic"
# AWTRIX NG External App Provider (Optional)
# Enables external apps and live display capture from an AWTRIX NG instance or virtual hub container
# AWTRIX_URL="http://192.168.1.15:7080"
# AWTRIX_FPS=15
# AWTRIX_SCALE_FILTER="bicubic"
# AWTRIX_LAYOUT="center" # Options: center (auto-center & pad), fill (stretch & fill display), native (raw top-left)