mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
- Add MapLibre GL JS viewer with light/dark themes, terrain layer, and embedded static map page for coordinate sharing - Add map pin support with persistent map_pins.yaml config - Add map region subscriptions and downloader with progress tracking, sourcing pre-extracted PMTiles from a cold CDN - Add map export to PNG and GPS coordinate copy via context menu - Add MapViewer React component alongside reworked Map page - Add map catalog and region-building script (build_map_regions.py) - Remove OSM import/render scripts, leaflet files, Apache configs, renderd service, and osm-map-dumper Docker container - Update Caddyfile to serve PMTiles and map static assets - Update build/install/repair scripts for Protomaps dependencies - Drop map_file table, add/drop map_subscription table (alembic) - Adding button to skip primary drive mounting during onboarding.
138 lines
3.8 KiB
Python
138 lines
3.8 KiB
Python
"""
|
|
Code-defined default configuration for the Controller.
|
|
|
|
Controller starts with these defaults and loads overrides from
|
|
/media/wrolpi/config/controller.yaml after the drive is mounted.
|
|
"""
|
|
|
|
DEFAULT_CONFIG = {
|
|
"port": 8087,
|
|
"media_directory": "/media/wrolpi",
|
|
|
|
"drives": {
|
|
"supported_filesystems": ["ext4", "btrfs", "vfat", "exfat"],
|
|
"auto_mount": True,
|
|
"mounts": [], # Populated from controller.yaml after drive mount
|
|
},
|
|
|
|
"managed_services": [
|
|
# WROLPi services
|
|
{
|
|
"name": "wrolpi-controller",
|
|
"systemd_name": "wrolpi-controller",
|
|
"port": 8087,
|
|
"viewable": True,
|
|
"use_https": False,
|
|
"description": "Controller API (FastAPI)",
|
|
},
|
|
{
|
|
"name": "wrolpi-api",
|
|
"systemd_name": "wrolpi-api",
|
|
"port": 8081,
|
|
"viewable": True,
|
|
"use_https": False,
|
|
"description": "Python API (Sanic)",
|
|
},
|
|
{
|
|
"name": "wrolpi-api-dev",
|
|
"systemd_name": "wrolpi-api-dev",
|
|
"port": 8081,
|
|
"viewable": True,
|
|
"use_https": False,
|
|
"description": "Python API (Development)",
|
|
"show_only_when_running": True,
|
|
},
|
|
{
|
|
"name": "wrolpi-app",
|
|
"systemd_name": "wrolpi-app",
|
|
"port": 3000,
|
|
"viewable": False,
|
|
"use_https": False,
|
|
"description": "React frontend",
|
|
},
|
|
{
|
|
"name": "wrolpi-app-dev",
|
|
"systemd_name": "wrolpi-app-dev",
|
|
"port": 3000,
|
|
"viewable": False,
|
|
"use_https": False,
|
|
"description": "React frontend (Development)",
|
|
"show_only_when_running": True,
|
|
},
|
|
{
|
|
"name": "wrolpi-help",
|
|
"systemd_name": "wrolpi-help",
|
|
"port": 8086,
|
|
"viewable": True,
|
|
"use_https": True,
|
|
"description": "Help documentation",
|
|
},
|
|
{
|
|
"name": "wrolpi-kiwix",
|
|
"systemd_name": "wrolpi-kiwix",
|
|
"port": 8085,
|
|
"viewable": True,
|
|
"use_https": True,
|
|
"description": "Kiwix/Zim server",
|
|
},
|
|
# System services
|
|
{
|
|
"name": "postgresql",
|
|
"systemd_name": "postgresql",
|
|
"port": 5432,
|
|
"viewable": False,
|
|
"use_https": False,
|
|
"description": "PostgreSQL database",
|
|
},
|
|
{
|
|
"name": "caddy",
|
|
"systemd_name": "caddy",
|
|
"port": 80,
|
|
"viewable": True,
|
|
"use_https": False,
|
|
"description": "Web proxy",
|
|
},
|
|
# Samba file sharing services
|
|
{
|
|
"name": "smbd",
|
|
"systemd_name": "smbd",
|
|
"port": 445,
|
|
"viewable": False,
|
|
"use_https": False,
|
|
"description": "Samba file sharing",
|
|
},
|
|
{
|
|
"name": "nmbd",
|
|
"systemd_name": "nmbd",
|
|
"port": 137,
|
|
"viewable": False,
|
|
"use_https": False,
|
|
"description": "Samba NetBIOS name service",
|
|
},
|
|
# Upgrade service - only shown when running
|
|
{
|
|
"name": "wrolpi-upgrade",
|
|
"systemd_name": "wrolpi-upgrade",
|
|
"port": None,
|
|
"viewable": False,
|
|
"use_https": False,
|
|
"description": "WROLPi upgrade process",
|
|
"show_only_when_running": True,
|
|
},
|
|
],
|
|
|
|
"hotspot": {
|
|
"device": "wlan0",
|
|
"ssid": "WROLPi",
|
|
"password": "wrolpi hotspot",
|
|
},
|
|
|
|
"throttle": {
|
|
"default_governor": "ondemand",
|
|
},
|
|
|
|
"samba": {
|
|
"shares": [],
|
|
# Each share: {"name": str, "path": str, "read_only": bool, "comment": str}
|
|
},
|
|
}
|