mirror of
https://github.com/nextcloud/documentation.git
synced 2025-08-20 14:15:54 +00:00
document json type for config:system:set
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
@ -441,6 +441,8 @@ known:
|
||||
* ``integer``
|
||||
* ``float``
|
||||
* ``string`` (default)
|
||||
* ``null``
|
||||
* ``json``
|
||||
|
||||
When you want to e.g. disable the maintenance mode run the following command::
|
||||
|
||||
@ -474,6 +476,15 @@ space. For example, to replace ``sample.tld`` with ``example.com``,
|
||||
nextcloud.local
|
||||
example.com
|
||||
|
||||
Alternatively, you can set the entry array at once by using the ``json`` type::
|
||||
|
||||
sudo -E -u www-data php occ config:system:set trusted_domains --type json --value '["nextcloud.local","example.com"]'
|
||||
System config value trusted_domains set to json ["nextcloud.local","example.com"]
|
||||
|
||||
sudo -E -u www-data php occ config:system:get trusted_domains
|
||||
nextcloud.local
|
||||
example.com
|
||||
|
||||
Setting a hierarchical configuration value
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@ -498,6 +509,11 @@ value above. For this Redis example, use the following commands::
|
||||
sudo -E -u www-data php occ config:system:set redis password --value=secret
|
||||
sudo -E -u www-data php occ config:system:set redis timeout --value=1.5
|
||||
|
||||
Alternatively, you can set the entry configuration at once by using the ``json`` type::
|
||||
|
||||
sudo -E -u www-data php occ config:system:set redis --type json --value '{"host":"/var/run/redis/redis.sock","port":0,"dbindex":0,"password":"secret","timeout":1.5}'
|
||||
|
||||
|
||||
Deleting a single configuration value
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
Reference in New Issue
Block a user