🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1.3 KiB
Plaintext
53 lines
1.3 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
|