Nextcloud: Difference between revisions
imported>NetaliDev SSL-Notes: add nginx vHost ACME example |
imported>Onny Add note on caching with Redis |
||
| Line 60: | Line 60: | ||
Alternatively apps can be manually installed via the app store integrated in your Nextcloud instance by navigating in the profile menu to the site "Apps". | Alternatively apps can be manually installed via the app store integrated in your Nextcloud instance by navigating in the profile menu to the site "Apps". | ||
=== SSL | === SSL === | ||
If you would like to setup Nextcloud with Let's Encrypt TLS certificates (or certs from any other certificate authority) make sure to set <code>services.nextcloud.https = true;</code> and to enable it in the nginx-vHost. | If you would like to setup Nextcloud with Let's Encrypt TLS certificates (or certs from any other certificate authority) make sure to set <code>services.nextcloud.https = true;</code> and to enable it in the nginx-vHost. | ||
| Line 75: | Line 75: | ||
forceSSL = true; | forceSSL = true; | ||
enableACME = true; | enableACME = true; | ||
}; | |||
</nowiki>}} | |||
=== Caching === | |||
[[Redis]] can be enabled as a performant caching backend using following configuration. This will bring faster page loads to your Nextcloud instance. | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
services.nextcloud = { | |||
enable = true; | |||
[...] | |||
caching = { | |||
redis = true; | |||
apcu = false; | |||
}; | |||
extraOptions = { | |||
redis = { | |||
host = "/run/redis-nextcloud/redis.sock"; | |||
port = 0; | |||
}; | |||
memcache = { | |||
local = "\\OC\\Memcache\\Redis"; | |||
distributed = "\\OC\\Memcache\\Redis"; | |||
locking = "\\OC\\Memcache\\Redis"; | |||
}; | |||
}; | |||
}; | |||
services.redis.servers.nextcloud = { | |||
enable = true; | |||
user = "nextcloud"; | |||
port = 0; | |||
}; | }; | ||
</nowiki>}} | </nowiki>}} | ||