User Tools

Site Tools


nextcloud_information

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nextcloud_information [2025/02/02 20:53] mikenextcloud_information [2025/04/19 21:50] (current) mike
Line 44: Line 44:
  
 === Additions to Nextcloud config (/config/www/nextcloud/config/config.php) === === Additions to Nextcloud config (/config/www/nextcloud/config/config.php) ===
 +(Note: make sure to update the xxx.xxx.xxx.xxx in the code below to the IP of the proxy)
  
   'trusted_proxies' =>   'trusted_proxies' =>
Line 54: Line 55:
     1 => 'X-Real-IP',     1 => 'X-Real-IP',
   ),   ),
 +  'enable_previews' => true,
   'enabledPreviewProviders' =>   'enabledPreviewProviders' =>
   array (   array (
Line 73: Line 75:
  
 === Updates to /config/nginx/site-confs/default.conf === === Updates to /config/nginx/site-confs/default.conf ===
-  * Change set_real_ip_from from 172.16.0.0/12 to Proxy IP+  * Change set_real_ip_from from 172.16.0.0/12to Proxy IP;
   * Ensure real_ip_header = X-Forwarded-For   * Ensure real_ip_header = X-Forwarded-For
  
Line 81: Line 83:
  
 Bounce nextcloud (docker restart nextcloud-app) after any/all config edits. Bounce nextcloud (docker restart nextcloud-app) after any/all config edits.
 +
 +=== Bulk actions in Nextcloud ===
 +In this example, we are deleting multiple users.
 +
 +Create a text file listing the accounts to be deleted, one per line.
 +
 +Execute the following command, referencing the just-created file:
 +  for i in $(cat users_to_del.txt); do occ user:delete $i; done
 +
  
nextcloud_information.1738558433.txt.gz · Last modified: 2025/02/02 20:53 by mike

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki