-
Notifications
You must be signed in to change notification settings - Fork 86
fix: remote access via connect config in rc.nginx #2269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Detect whether Connect is installed using the `$API_UTILS` script. If installed, read pertinent config from the corresponding `connect.json` file instead of the deprecated `myservers.cfg`.
WalkthroughThe script in Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (4)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
## Summary - **New Features** - Introduced a comprehensive Nginx control script for Unraid OS, enabling advanced server management, SSL certificate handling, and dynamic configuration based on system state. unraid/webgui#2269 - Added a utility function to safely execute code with error handling support. - **Improvements** - Enhanced logging across remote access, WAN access, and settings services for improved traceability. - Added initialization and cleanup hooks to remote access and UPnP services for better lifecycle management. - Optimized configuration persistence by batching rapid changes for more efficient updates. - Refined URL resolution logic for improved configuration retrieval and error handling. - Broadened pattern matching for domain keys in Nginx state parsing. - Updated remote access settings to reload the network stack after changes. - Simplified remote access and WAN port configuration logic for clarity and accuracy. - Improved port mapping logic with explicit error handling in UPnP service. - Updated UI and form controls for remote access settings to reflect SSL requirements and access type restrictions. - **Configuration** - Updated the default path for module configuration files. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced remote access detection for nginx using updated configuration and plugin integration. - Introduced a comprehensive Nginx management script tailored for Unraid OS with SSL handling, server lifecycle controls, and dynamic configuration. - **Bug Fixes** - Improved script robustness by fixing shell loop syntax for proper handling of array keys. - **Chores** - Added compatibility patches for Unraid versions before 7.2.0. - Updated test suites to include new nginx script modifications. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Detect whether Connect is installed using the
$API_UTILSscript.If installed, read pertinent config from the corresponding
connect.jsonfile instead of the deprecatedmyservers.cfg.Summary by CodeRabbit
Bug Fixes
Chores