From 21246c406f0b328b7318bbf9fc6d35ebcda27f4c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Wed, 6 Nov 2024 12:28:46 -0300 Subject: [PATCH] chore: update documentation Added instructions about how to configure the allowed IP Signed-off-by: Vitor Mattos --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 04b66f4..09c5025 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,18 @@ Available features: occ app:enable admin_group_manager occ app:enable groupquota ``` +- Allowed IP + + By security, this API only receive requests from a specific IP. + - Run a tail with grep to watch by the word "Unauthorized access". + ```bash + tail -f data/nextcloud.log|grep "Unauthorized access" + ``` + - Do a request to API endpoint and go back to terminal to check the logs and get the IP. + - With the IP, run the follow command: + ```bash + occ config:system:set admin_group_manager_allowed_ip --value + ``` ## Performance improving Systemd service