[PR #40] [MERGED] 🔧 feat(casaos-nextcloud): Add LAN IP to Nextcloud config #49

Closed
opened 2025-11-20 04:14:25 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/40
Author: @dragonfire1119
Created: 5/1/2025
Status: Merged
Merged: 5/1/2025
Merged by: @dragonfire1119

Base: masterHead: casaos-add-lan-ip-to-nextcloud-config


📝 Commits (1)

  • cb3bd02 🔧 feat(casaos-nextcloud): Add LAN IP to Nextcloud config

📊 Changes

1 file changed (+27 additions, -3 deletions)

View changed files

📝 casaos-add-lan-ip-to-nextcloud-config/run.sh (+27 -3)

📄 Description

  • Implement a function Get_IPs() to reliably detect the LAN IP address, prioritizing non-loopback and non-docker interfaces.
  • Use the detected LAN IP address to update the config.php file, adding it as an additional entry in the trusted_domains setting.
  • Backup the original config.php file before making changes.

Summary by CodeRabbit

  • Bug Fixes

    • Improved detection of the device's LAN IP address to ensure more accurate configuration, especially in complex network environments.
    • Enhanced error handling if no valid LAN IP is found.
  • Style

    • Minor formatting adjustment for improved readability in output messages.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bigbeartechworld/big-bear-scripts/pull/40 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 5/1/2025 **Status:** ✅ Merged **Merged:** 5/1/2025 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `casaos-add-lan-ip-to-nextcloud-config` --- ### 📝 Commits (1) - [`cb3bd02`](https://github.com/bigbeartechworld/big-bear-scripts/commit/cb3bd02159976e95c1221b29a3a4fe4f1fb545fd) 🔧 feat(casaos-nextcloud): Add LAN IP to Nextcloud config ### 📊 Changes **1 file changed** (+27 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `casaos-add-lan-ip-to-nextcloud-config/run.sh` (+27 -3) </details> ### 📄 Description - Implement a function `Get_IPs()` to reliably detect the LAN IP address, prioritizing non-loopback and non-docker interfaces. - Use the detected LAN IP address to update the `config.php` file, adding it as an additional entry in the `trusted_domains` setting. - Backup the original `config.php` file before making changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved detection of the device's LAN IP address to ensure more accurate configuration, especially in complex network environments. - Enhanced error handling if no valid LAN IP is found. - **Style** - Minor formatting adjustment for improved readability in output messages. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#49