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:34] mikenextcloud_information [2025/04/19 21:50] (current) mike
Line 1: Line 1:
 ====== Nextcloud Information ====== ====== Nextcloud Information ======
 ---- ----
 +~~NOTOC~~
 === A high level example of interfacing with Nextcloud (docker container) === === A high level example of interfacing with Nextcloud (docker container) ===
   ##Open terminal in container   ##Open terminal in container
Line 42: Line 43:
 Edit the file /config/nginx/site-confs/default.conf and comment out the IPv6 listeners. Edit the file /config/nginx/site-confs/default.conf and comment out the IPv6 listeners.
  
-=== Suggested 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' =>
   array (   array (
     0 => 'xxx.xxx.xxx.xxx',     0 => 'xxx.xxx.xxx.xxx',
-  ), 
-  'enable_previews' => true, 
-  'enabledPreviewProviders' => 
-  array ( 
-    0 => 'OC\\Preview\\BMP', 
-    1 => 'OC\\Preview\\GIF', 
-    2 => 'OC\\Preview\\JPEG', 
-    3 => 'OC\\Preview\\Krita', 
-    4 => 'OC\\Preview\\MarkDown', 
-    5 => 'OC\\Preview\\MP3', 
-    6 => 'OC\\Preview\\OpenDocument', 
-    7 => 'OC\\Preview\\PNG', 
-    8 => 'OC\\Preview\\TXT', 
-    9 => 'OC\\Preview\\XBitmap', 
-    10 => 'OC\\Preview\\Movie', 
-  'maintenance_window_start' => 1, 
-  'default_phone_region' => 'US', 
-  'skeletondirectory' => '', 
- 
-=== Updates to Nextcloud installs to handle large files === 
-  * Update /config/nginx/nginx.conf – make sure ‘client_max_body_size’ equals 0 (zero). 
-  * Update /config/nginx/site-confs/default.conf – make sure ‘client_max_body_size’ equals 16G. 
----- 
-/config/www/nextcloud/config/config.php 
- 
-Add: 
- 
-  'trusted_proxies' => 
-  array ( 
-    0 => '192.168.1.226', 
   ),   ),
   'forwarded_for_headers' =>   'forwarded_for_headers' =>
Line 83: Line 55:
     1 => 'X-Real-IP',     1 => 'X-Real-IP',
   ),   ),
 +  'enable_previews' => true,
   'enabledPreviewProviders' =>   'enabledPreviewProviders' =>
   array (   array (
Line 101: Line 74:
   'skeletondirectory' => '',   'skeletondirectory' => '',
  
-=====+=== Updates to /config/nginx/site-confs/default.conf ==
 +  * Change set_real_ip_from from 172.16.0.0/12; to Proxy IP; 
 +  * Ensure real_ip_header = X-Forwarded-For 
 + 
 +=== Updates to Nextcloud installs to handle large files === 
 +  * Update /config/nginx/nginx.conf – make sure ‘client_max_body_size’ equals 0 (zero). 
 +  * Update /config/nginx/site-confs/default.conf – make sure ‘client_max_body_size’ equals 16G. 
 + 
 +Bounce nextcloud (docker restart nextcloud-app) after any/all config edits.
  
-/config/nginx/site-confs/default.conf+=== Bulk actions in Nextcloud === 
 +In this example, we are deleting multiple users.
  
-Change set_real_ip_from from 172.16.0.0/12 to 192.168.1.226/32 +Create a text file listing the accounts to be deleted, one per line.
-Ensure real_ip_header = X-Forwarded-For+
  
-=====+Execute the following command, referencing the just-created file: 
 +  for i in $(cat users_to_del.txt); do occ user:delete $i; done
  
-Bounce nextcloud (docker restart nextcloud-app) afterwards 
  
nextcloud_information.1738557296.txt.gz · Last modified: 2025/02/02 20:34 by mike

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki