Files
big-bear-scripts/casaos-add-lan-ip-to-nextcloud-config
Christopher e6667ea933 🔧 feat(casaos-nextcloud): Add LAN IP to Nextcloud config (#40)
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.
2025-04-30 23:48:01 -05:00
..

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)"