Nextcloud: Difference between revisions

No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Nextcloud is a self-hosted cloud solution.
Nextcloud is a self-hosted cloud storage and file sharing solution.  
It is a fork of ownCloud by the original founder.


It is open-source under AGPL-3.
It is open-source under AGPL-3.
Line 36: Line 35:
You should use caching to achieve a reasonable performance.   
You should use caching to achieve a reasonable performance.   
NextCloud recommends APCu for local caching and Redis for lock caching:
NextCloud recommends APCu for local caching and Redis for lock caching:
<pre>
<syntaxhighlight lang="php">
'memcache.local' => '\OC\Memcache\APCu',
'memcache.local' => '\OC\Memcache\APCu',
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.distributed' => '\OC\Memcache\Redis',
Line 44: Line 43:
     'port' => 6379,
     'port' => 6379,
],
],
</pre>
</syntaxhighlight>


===Troubleshooting===
===Troubleshooting===
Line 75: Line 74:


Markdown does not have a Latex app.
Markdown does not have a Latex app.
==Apache==
{{hidden | Example Apache Config |
For best performance, you should disable certain modules as listed [https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html in the troubleshooting section of the guide.]
<pre>
<VirtualHost *:80>
  ServerName cloud.davidl.me
  ServerSignature Off
  RewriteEngine on
  RewriteCond %{HTTPS} !=on
  RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] 
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
  ServerName cloud.davidl.me
  ServerSignature Off
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/nextcloud
  # Disable mod_deflate for nextcloud.
  SetEnv no-gzip 1
  <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  </IfModule>
  ErrorLog ${APACHE_LOG_DIR}/cloud_davidlme_error.log
  CustomLog ${APACHE_LOG_DIR}/cloud_davidlme_access.log combined
  # SSL Stuff here
</VirtualHost>
</pre>
}}