mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #247384 from jtbx/nextcloud-doc
nixos/nextcloud: improve documentation
This commit is contained in:
commit
01820d520b
1 changed files with 52 additions and 43 deletions
|
@ -142,8 +142,8 @@ in {
|
||||||
default = config.services.nextcloud.home;
|
default = config.services.nextcloud.home;
|
||||||
defaultText = literalExpression "config.services.nextcloud.home";
|
defaultText = literalExpression "config.services.nextcloud.home";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Data storage path of nextcloud. Will be [](#opt-services.nextcloud.home) by default.
|
Nextcloud's data storage path. Will be [](#opt-services.nextcloud.home) by default.
|
||||||
This folder will be populated with a config.php and data folder which contains the state of the instance (excl the database).";
|
This folder will be populated with a config.php file and a data folder which contains the state of the instance (excluding the database).";
|
||||||
'';
|
'';
|
||||||
example = "/mnt/nextcloud-file";
|
example = "/mnt/nextcloud-file";
|
||||||
};
|
};
|
||||||
|
@ -176,8 +176,8 @@ in {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Automatically enable the apps in [](#opt-services.nextcloud.extraApps) every time nextcloud starts.
|
Automatically enable the apps in [](#opt-services.nextcloud.extraApps) every time Nextcloud starts.
|
||||||
If set to false, apps need to be enabled in the Nextcloud user interface or with nextcloud-occ app:enable.
|
If set to false, apps need to be enabled in the Nextcloud web user interface or with `nextcloud-occ app:enable`.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
appstoreEnable = mkOption {
|
appstoreEnable = mkOption {
|
||||||
|
@ -185,16 +185,28 @@ in {
|
||||||
default = null;
|
default = null;
|
||||||
example = true;
|
example = true;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Allow the installation of apps and app updates from the store.
|
Allow the installation and updating of apps from the Nextcloud appstore.
|
||||||
Enabled by default unless there are packages in [](#opt-services.nextcloud.extraApps).
|
Enabled by default unless there are packages in [](#opt-services.nextcloud.extraApps).
|
||||||
Set to true to force enable the store even if [](#opt-services.nextcloud.extraApps) is used.
|
Set this to true to force enable the store even if [](#opt-services.nextcloud.extraApps) is used.
|
||||||
Set to false to disable the installation of apps from the global appstore. App management is always enabled regardless of this setting.
|
Set this to false to disable the installation of apps from the global appstore. App management is always enabled regardless of this setting.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
logLevel = mkOption {
|
logLevel = mkOption {
|
||||||
type = types.ints.between 0 4;
|
type = types.ints.between 0 4;
|
||||||
default = 2;
|
default = 2;
|
||||||
description = lib.mdDoc "Log level value between 0 (DEBUG) and 4 (FATAL).";
|
description = lib.mdDoc ''
|
||||||
|
Log level value between 0 (DEBUG) and 4 (FATAL).
|
||||||
|
|
||||||
|
- 0 (debug): Log all activity.
|
||||||
|
|
||||||
|
- 1 (info): Log activity such as user logins and file activities, plus warnings, errors, and fatal errors.
|
||||||
|
|
||||||
|
- 2 (warn): Log successful operations, as well as warnings of potential problems, errors and fatal errors.
|
||||||
|
|
||||||
|
- 3 (error): Log failed operations and fatal errors.
|
||||||
|
|
||||||
|
- 4 (fatal): Log only fatal errors that cause the server to stop.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
logType = mkOption {
|
logType = mkOption {
|
||||||
type = types.enum [ "errorlog" "file" "syslog" "systemd" ];
|
type = types.enum [ "errorlog" "file" "syslog" "systemd" ];
|
||||||
|
@ -208,7 +220,7 @@ in {
|
||||||
https = mkOption {
|
https = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = lib.mdDoc "Use https for generated links.";
|
description = lib.mdDoc "Use HTTPS for generated links.";
|
||||||
};
|
};
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
|
@ -228,7 +240,7 @@ in {
|
||||||
default = "512M";
|
default = "512M";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Defines the upload limit for files. This changes the relevant options
|
The upload limit for files. This changes the relevant options
|
||||||
in php.ini and nginx if enabled.
|
in php.ini and nginx if enabled.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -257,10 +269,10 @@ in {
|
||||||
default = all: [];
|
default = all: [];
|
||||||
defaultText = literalExpression "all: []";
|
defaultText = literalExpression "all: []";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Additional PHP extensions to use for nextcloud.
|
Additional PHP extensions to use for Nextcloud.
|
||||||
By default, only extensions necessary for a vanilla nextcloud installation are enabled,
|
By default, only extensions necessary for a vanilla Nextcloud installation are enabled,
|
||||||
but you may choose from the list of available extensions and add further ones.
|
but you may choose from the list of available extensions and add further ones.
|
||||||
This is sometimes necessary to be able to install a certain nextcloud app that has additional requirements.
|
This is sometimes necessary to be able to install a certain Nextcloud app that has additional requirements.
|
||||||
'';
|
'';
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
all: [ all.pdlib all.bz2 ]
|
all: [ all.pdlib all.bz2 ]
|
||||||
|
@ -318,7 +330,7 @@ in {
|
||||||
type = types.nullOr types.lines;
|
type = types.nullOr types.lines;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Options for nextcloud's PHP pool. See the documentation on `php-fpm.conf` for details on configuration directives.
|
Options for Nextcloud's PHP pool. See the documentation on `php-fpm.conf` for details on configuration directives.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -336,7 +348,7 @@ in {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Create the database and database user locally.
|
Whether to create the database and database user locally.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -374,9 +386,10 @@ in {
|
||||||
else "localhost";
|
else "localhost";
|
||||||
defaultText = "localhost";
|
defaultText = "localhost";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Database host or socket path. Defaults to the correct unix socket
|
Database host or socket path.
|
||||||
instead if `services.nextcloud.database.createLocally` is true and
|
If [](#opt-services.nextcloud.database.createLocally) is true and
|
||||||
`services.nextcloud.config.dbtype` is either `pgsql` or `mysql`.
|
[](#opt-services.nextcloud.config.dbtype) is either `pgsql` or `mysql`,
|
||||||
|
defaults to the correct Unix socket instead.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
dbport = mkOption {
|
dbport = mkOption {
|
||||||
|
@ -387,19 +400,19 @@ in {
|
||||||
dbtableprefix = mkOption {
|
dbtableprefix = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc "Table prefix in Nextcloud database.";
|
description = lib.mdDoc "Table prefix in Nextcloud's database.";
|
||||||
};
|
};
|
||||||
adminuser = mkOption {
|
adminuser = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "root";
|
default = "root";
|
||||||
description = lib.mdDoc "Admin username.";
|
description = lib.mdDoc "Username for the admin account.";
|
||||||
};
|
};
|
||||||
adminpassFile = mkOption {
|
adminpassFile = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
The full path to a file that contains the admin's password. Must be
|
The full path to a file that contains the admin's password. Must be
|
||||||
readable by user `nextcloud`. The password is set only in the initial
|
readable by user `nextcloud`. The password is set only in the initial
|
||||||
setup of nextcloud by the systemd `nextcloud-setup.service`.
|
setup of Nextcloud by the systemd service `nextcloud-setup.service`.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -407,7 +420,7 @@ in {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Trusted domains, from which the nextcloud installation will be
|
Trusted domains from which the Nextcloud installation will be
|
||||||
accessible. You don't need to add
|
accessible. You don't need to add
|
||||||
`services.nextcloud.hostname` here.
|
`services.nextcloud.hostname` here.
|
||||||
'';
|
'';
|
||||||
|
@ -417,8 +430,8 @@ in {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Trusted proxies, to provide if the nextcloud installation is being
|
Trusted proxies to provide if the Nextcloud installation is being
|
||||||
proxied to secure against e.g. spoofing.
|
proxied to secure against, e.g. spoofing.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -428,10 +441,10 @@ in {
|
||||||
example = "https";
|
example = "https";
|
||||||
|
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Force Nextcloud to always use HTTPS i.e. for link generation. Nextcloud
|
Force Nextcloud to always use HTTP or HTTPS i.e. for link generation.
|
||||||
uses the currently used protocol by default, but when behind a reverse-proxy,
|
Nextcloud uses the currently used protocol by default, but when
|
||||||
it may use `http` for everything although Nextcloud
|
behind a reverse-proxy, it may use `http` for everything although
|
||||||
may be served via HTTPS.
|
Nextcloud may be served via HTTPS.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -440,16 +453,12 @@ in {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
example = "DE";
|
example = "DE";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
::: {.warning}
|
An [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html)
|
||||||
This option exists since Nextcloud 21! If older versions are used,
|
country code which replaces automatic phone-number detection
|
||||||
this will throw an eval-error!
|
without a country code.
|
||||||
:::
|
|
||||||
|
|
||||||
[ISO 3611-1](https://www.iso.org/iso-3166-country-codes.html)
|
As an example, with `DE` set as the default phone region,
|
||||||
country codes for automatic phone-number detection without a country code.
|
the `+49` prefix can be omitted for phone numbers.
|
||||||
|
|
||||||
With e.g. `DE` set, the `+49` can be omitted for
|
|
||||||
phone-numbers.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -574,10 +583,10 @@ in {
|
||||||
default = config.services.nextcloud.notify_push.enable;
|
default = config.services.nextcloud.notify_push.enable;
|
||||||
defaultText = literalExpression "config.services.nextcloud.notify_push.enable";
|
defaultText = literalExpression "config.services.nextcloud.notify_push.enable";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Whether to configure nextcloud to use the recommended redis settings for small instances.
|
Whether to configure Nextcloud to use the recommended Redis settings for small instances.
|
||||||
|
|
||||||
::: {.note}
|
::: {.note}
|
||||||
The `notify_push` app requires redis to be configured. If this option is turned off, this must be configured manually.
|
The `notify_push` app requires Redis to be configured. If this option is turned off, this must be configured manually.
|
||||||
:::
|
:::
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -614,7 +623,7 @@ in {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Run regular auto update of all apps installed from the nextcloud app store.
|
Run a regular auto-update of all apps installed from the Nextcloud app store.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
startAt = mkOption {
|
startAt = mkOption {
|
||||||
|
@ -661,7 +670,7 @@ in {
|
||||||
type = jsonFormat.type;
|
type = jsonFormat.type;
|
||||||
default = {};
|
default = {};
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Extra options which should be appended to nextcloud's config.php file.
|
Extra options which should be appended to Nextcloud's config.php file.
|
||||||
'';
|
'';
|
||||||
example = literalExpression '' {
|
example = literalExpression '' {
|
||||||
redis = {
|
redis = {
|
||||||
|
@ -678,7 +687,7 @@ in {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Secret options which will be appended to nextcloud's config.php file (written as JSON, in the same
|
Secret options which will be appended to Nextcloud's config.php file (written as JSON, in the same
|
||||||
form as the [](#opt-services.nextcloud.extraOptions) option), for example
|
form as the [](#opt-services.nextcloud.extraOptions) option), for example
|
||||||
`{"redis":{"password":"secret"}}`.
|
`{"redis":{"password":"secret"}}`.
|
||||||
'';
|
'';
|
||||||
|
@ -712,7 +721,7 @@ in {
|
||||||
A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
|
A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
|
||||||
|
|
||||||
After nextcloud${toString major} is installed successfully, you can safely upgrade
|
After nextcloud${toString major} is installed successfully, you can safely upgrade
|
||||||
to ${toString (major + 1)}. The latest version available is nextcloud${toString latest}.
|
to ${toString (major + 1)}. The latest version available is Nextcloud${toString latest}.
|
||||||
|
|
||||||
Please note that Nextcloud doesn't support upgrades across multiple major versions
|
Please note that Nextcloud doesn't support upgrades across multiple major versions
|
||||||
(i.e. an upgrade from 16 is possible to 17, but not 16 to 18).
|
(i.e. an upgrade from 16 is possible to 17, but not 16 to 18).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue