User Tools

Site Tools


computing:nextcloud

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
computing:nextcloud [2023/12/16 17:53] oemb1905computing:nextcloud [2024/04/13 21:18] (current) oemb1905
Line 244: Line 244:
   sudo -u www-data php updater.phar   sudo -u www-data php updater.phar
      
-Use redis for everything except local memcache which uses apcu. Also, in this configuration, redis is on the same machine as nextcloud. First, install needed packages.+Use redis for everything except local memcache which uses apcu. Also, in this configuration, redis is on the same machine as nextcloud. First, install needed packages. Adjust versions to your needs.
  
-  sudo apt install memcached php-apcu php-redis redis-server php-memcache php8.3-memcache+  sudo apt install  php-{apcu,redis,memcache,memcached} redis memcached redis-server 
 +  sudo apt install  php8.3-{apcu,redis,memcache,memcached} redis memcached redis-server 
 +  sudo apt-get install php-{xml,curl,gd,cgi,zip,mysql,mbstring,intl,fpm,apcu,gmp,imagick,bcmath,bz2} 
 +  sudo apt-get install php8.3-{xml,curl,gd,cgi,zip,mysql,mbstring,intl,fpm,apcu,gmp,imagick,bcmath,bz2}
  
 Then, right underneath the '''filelocking.enabled' => true,'' line, enter the following: Then, right underneath the '''filelocking.enabled' => true,'' line, enter the following:
Line 268: Line 271:
   RewriteRule ^\.well-known/webfinger /index.php/.well-known/webfinger [R=301,L]   RewriteRule ^\.well-known/webfinger /index.php/.well-known/webfinger [R=301,L]
   RewriteRule ^\.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]   RewriteRule ^\.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]
 +  
 +Enable rotation of logs
  
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2023/07/08 18:32//+  'log_rotate_size' => 100 * 1024 * 1024, 
 + 
 +Delete the log contents (removes errors from admin settings GUI) 
 +   
 +  sudo -u www-data truncate nextcloud.log  --size 0 
 + 
 +This will put the logs on a schedule and remove old errors in due time. When I put Nextcloud behind a reverse proxy, I had to change the following in the primary config: 
 + 
 +  sudo nano /var/www/inside.outsidebox.vip/public_html/config/config.php 
 +  'trusted_domains' => 
 +    array ( 
 +      0 => 'inside.outsidebox.vip', 
 +      1 => '10.13.13.33', 
 +    ), 
 +  'overwritehost' => 'inside.outsidebox.vip', 
 +  'overwriteprotocol' => 'https', 
 + 
 +This ensures that the upstream subnet and node is trusted and that external url requests don't try to access the subnet directly. There are other notes in the proxmox tutorial since that is when I set up the reverse proxy setup. There is now a recommended maintenance window setting: 
 + 
 +  'maintenance_window_start' => 1, 
 + 
 + --- //[[webmaster@haacksnetworking.org|oemb1905]] 2024/04/13 21:17//
computing/nextcloud.1702749181.txt.gz · Last modified: 2023/12/16 17:53 by oemb1905