mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-07-11 00:01:42 -04:00
e6667ea933f1af742d053eb09d253f7744456767
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.
BigBearScripts
YouTube Link: https://www.youtube.com/@bigbeartechworld
BigBearCommunity
If you have a suggestion for a video, post in the BigBearCommunity.
Support My Work
Languages
Shell
99.2%
JavaScript
0.8%