Files
pi-pm3/systemd/dangerous-pi.env.example
michael a9acdb85ce Build optimization: pre-built PM3 binaries, ARM64 CI, base image caching
Replace PM3 compile-from-source in pi-gen with pre-built tarball extraction
(saves 43-58 min). Merge stagePM3 into stageDangerousPi as 02-pm3-install
substage, renumber all subsequent substages. Switch CI PM3 build to native
ARM64 runner (ubuntu-24.04-arm64) eliminating QEMU overhead. Add weekly
base-image workflow for pre-baking stages 0-2. Support PM3_TARBALL,
BASE_IMAGE, and APT_PROXY env vars in build-image.sh.

Also includes prior Phase 5 work: theme system, design system integration,
component update system, OS updates, CI build pipeline, and test results.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 12:01:01 -08:00

58 lines
1.5 KiB
Plaintext

# Dangerous Pi Environment Configuration
# Copy this file to /opt/dangerous-pi/.env and customize as needed
# PM3 Configuration
PM3_DEVICE=/dev/ttyACM0
PM3_TIMEOUT=30
# Session Configuration
SESSION_TIMEOUT=300
# Server Configuration
HOST=0.0.0.0
PORT=8000
VERSION=1.0.0
# Update Configuration
GITHUB_REPO=yourusername/dangerous-pi
UPDATE_CHECK_INTERVAL=3600
# Wi-Fi Configuration
WLAN_INTERFACE=wlan0
USB_WLAN_INTERFACE=wlan1
# UPS Configuration
# UPS_TYPE options: "pisugar", "i2c", "none"
UPS_TYPE=i2c
UPS_CHECK_INTERVAL=60
# I2C UPS settings (for generic fuel gauge HATs like MAX17040/MAX17048)
UPS_I2C_ADDRESS=0x36
# PiSugar UPS settings (for PiSugar 2/3 series)
UPS_PISUGAR_HOST=127.0.0.1
UPS_PISUGAR_PORT=8423
# BLE Configuration
BLE_ENABLED=true
BLE_DEVICE_NAME=DangerousPi
# Security
AUTH_ENABLED=false
# HTTPS Configuration
# Set HTTPS_ENABLED=true to enable HTTPS with self-signed certificates
# On first boot with HTTPS enabled, a certificate will be automatically generated
# The certificate is valid for 10 years and covers:
# - 192.168.4.1 (AP gateway IP)
# - dangerous-pi.local (mDNS hostname)
# - localhost
# Note: Browsers will show a security warning for self-signed certificates
# After enabling, restart services: sudo systemctl restart dangerous-pi-nginx-config nginx
HTTPS_ENABLED=false
# OS Updates
# Automatic security patches via unattended-upgrades (daily check)
# Set to false to disable automatic security updates
AUTO_SECURITY_UPDATES=true