Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to hide all irrelevant disks/partitions and network interfaces under settings/admin/serverinfo #381

Open
Sommerwiesel opened this issue Jun 1, 2022 · 3 comments

Comments

@Sommerwiesel
Copy link

Sommerwiesel commented Jun 1, 2022

Currently, in the web gui, under settings/admin/serverinfo, all disks and all partitions of the host os are displayed, including mountpoints like:

  • tmpfs
  • /boot/efi
  • other disks

Additionally, all network interfaces are displayed as well, including all docker networks (and there are a lot of them)

My server hosts various services and thus has many partitions and networks, some of them are from docker.
My admin page is currently horribly cluttered by all these partitions and network interfaces. A clear, precise overview is not possible.

I would really like the option to hide all irrelevant information so that the admin page only shows the storages that are used by nextcloud, in my case, that would be a single partition I created for nextcloud and the main network interface.

@Sommerwiesel Sommerwiesel changed the title Add the ability to hide all irrelevant disks / partitions under settings/admin/serverinfo Add the ability to hide all irrelevant disks/partitons and network interfaces under settings/admin/serverinfo Jun 1, 2022
@Sommerwiesel Sommerwiesel changed the title Add the ability to hide all irrelevant disks/partitons and network interfaces under settings/admin/serverinfo Add the ability to hide all irrelevant disks/partitions and network interfaces under settings/admin/serverinfo Jun 1, 2022
@kesselb kesselb transferred this issue from nextcloud/server Jun 1, 2022
@kesselb
Copy link
Collaborator

kesselb commented Jun 1, 2022

Hi, thanks for reporting 👍

if (in_array($matches['Type'][$i], ['tmpfs', 'devtmpfs', 'squashfs', 'overlay'], false)) {
continue;
}
feel free to extend the existing logic to skip more disks.

@Sommerwiesel
Copy link
Author

Hi, thanks for the information.
I will do exactly that.

@proxyconcept
Copy link

I'm also interested in this feature: we can have several mount points on the server that doesn't concern Nextcloud (and people who have access on this admin page are not sysadmins).

So I implemented an another optional filter: It can be activated in the system config. It's only a simple boolean, because the filtering is automatically based on the mount point: the disks is relevant if the mount path is parent of the PHP files or the data directory.

What do you think about that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants