Files
Ivan 6978a12cef feat: introduce demo mode functionality
- Added support for a read-only demo mode, allowing users to access the application without authentication while blocking all write operations.
- Implemented configuration options for demo mode in the .env.example file, including a list of RSS feeds to auto-populate.
- Enhanced API to handle demo mode logic, ensuring that write operations are forbidden when demo mode is active.
- Updated frontend components to reflect demo mode status, disabling actions that modify data and displaying a notification to users.
- Introduced a new System Settings section for configuring feed refresh intervals, with appropriate restrictions in demo mode.
2025-09-15 01:09:54 -05:00

30 lines
1.2 KiB
Plaintext

# To populate a .env file, copy this file to .env:
#
# cp -n .env.example .env
# Web Server
HOST="0.0.0.0"
PORT=8080
# WebUI password. Leave it an empty string to disable password protection.
PASSWORD="fusion"
# Path to store sqlite DB file
DB="fusion.db"
# Enable Secure Cookie
# It is automatically set to true when TLS_* is not empty.
SECURE_COOKIE=false
# Path to TLS cert and key files
# If you are using a reverse proxy like Nginx to handle HTTPS, please leave these empty.
TLS_CERT=""
TLS_KEY=""
# Demo Mode - Set to true for read-only public demo
# When enabled: no authentication required, all write operations blocked
DEMO_MODE=true
# Demo Mode Feeds - Comma-separated list of RSS feed URLs to auto-populate in demo mode
# Only used when DEMO_MODE=true. Leave empty to start with no feeds.
DEMO_MODE_FEEDS=https://feeds.bbci.co.uk/news/rss.xml,https://rss.cnn.com/rss/edition.rss,https://feeds.feedburner.com/TechCrunch,https://www.theverge.com/rss/index.xml,https://hnrss.org/frontpage,https://feeds.arstechnica.com/arstechnica/index,https://www.reddit.com/r/programming/.rss,https://dev.to/feed,https://feeds.simplecast.com/54nAGcIl,https://changelog.com/master/feed