Strix/strix.yaml.example
eduard256 3d5a4927a6 Add unified port configuration system
- Unified API and WebUI on single configurable port (default: 4567)
- Added strix.yaml configuration file support (go2rtc-style format)
- Environment variable STRIX_API_LISTEN overrides config file
- Port validation and source logging
- Relative URLs in frontend for automatic port detection
- Removed separate server instances
- Cleaned up temporary files and updated .gitignore
- Updated documentation with configuration examples
2025-11-12 10:20:55 +03:00

25 lines
852 B
Text

# Strix Configuration Example
# Copy this file to strix.yaml and modify as needed
# API Server Configuration
api:
# Listen address in format ":port" or "host:port"
# Default: ":4567"
listen: ":4567"
# Examples:
# listen: ":4567" # Listen on all interfaces, port 4567 (default)
# listen: "0.0.0.0:4567" # Explicitly listen on all interfaces
# listen: "127.0.0.1:4567" # Listen only on localhost (secure local-only access)
# listen: ":8080" # Custom port on all interfaces
# Configuration Priority (highest to lowest):
# 1. Environment variable: STRIX_API_LISTEN
# 2. This file: strix.yaml
# 3. Default value: :4567
# Quick Start:
# 1. Copy this file: cp strix.yaml.example strix.yaml
# 2. Edit the listen address if needed
# 3. Run strix: ./strix
# 4. Or set via environment: STRIX_API_LISTEN=":8080" ./strix