mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-03-31 06:24:02 -04:00
This commit adds the LAN IP address to the Nextcloud configuration file (`config.php`). The changes ensure that Nextcloud can be accessed using the LAN IP address, in addition to the default `localhost` address. The key changes are: - 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.
About
This script adds your LAN IP to the nextcloud config.php.
Run command
bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/casaos-add-lan-ip-to-nextcloud-config/run.sh)"