- Fix service instance management to use global instance for stopping autosync - Add automatic saving when toggle is changed (no manual save required) - Fix validation issue where custom sync type without cron expression caused 400 error - Add comprehensive debugging and error handling - Ensure .env file is properly updated with AUTO_SYNC_ENABLED value - Improve service lifecycle management with proper state cleanup - Add fallback logic for invalid sync interval configurations Resolves issue where disabling autosync in GUI didn't update .env file or stop service
38 lines
857 B
Plaintext
38 lines
857 B
Plaintext
# When adding additional environment variables, the schema in "/src/env.js"
|
|
# should be updated accordingly.
|
|
|
|
REPO_URL="https://github.com/community-scripts/ProxmoxVE"
|
|
REPO_BRANCH="main"
|
|
SCRIPTS_DIRECTORY="scripts"
|
|
ALLOWED_SCRIPT_EXTENSIONS=".sh"
|
|
|
|
CT_SCRIPT_FOLDER="ct"
|
|
INSTALL_SCRIPT_FOLDER="install"
|
|
JSON_FOLDER="frontend/public/json"
|
|
|
|
# Security
|
|
MAX_SCRIPT_EXECUTION_TIME="900000"
|
|
ALLOWED_SCRIPT_PATHS="scripts/"
|
|
|
|
# WebSocket Configuration
|
|
WEBSOCKET_PORT="3001"
|
|
|
|
# User settings
|
|
GITHUB_TOKEN=
|
|
SAVE_FILTER=false
|
|
FILTERS=
|
|
AUTH_USERNAME=
|
|
AUTH_PASSWORD_HASH=
|
|
AUTH_ENABLED=false
|
|
AUTH_SETUP_COMPLETED=false
|
|
JWT_SECRET=
|
|
DATABASE_URL="file:/opt/ProxmoxVE-Local/data/settings.db"
|
|
AUTO_SYNC_ENABLED=false
|
|
SYNC_INTERVAL_TYPE=
|
|
SYNC_INTERVAL_PREDEFINED=
|
|
AUTO_DOWNLOAD_NEW=
|
|
AUTO_UPDATE_EXISTING=
|
|
NOTIFICATION_ENABLED=
|
|
APPRISE_URLS=
|
|
LAST_AUTO_SYNC=
|
|
SYNC_INTERVAL_CRON= |