Add Apps to Manually Installed Server

Hi,

I have installed latest version of NextCloud manually from here, my config.php look like

<?php
$CONFIG = array (
  //'debug' => true,
  'instanceid' => '********',
  'objectstore' =>
  array (
    'class' => 'OC\\Files\\ObjectStore\\S3',
    'arguments' =>
    array (
      'bucket' => 'nextcloud',
      'autocreate' => true,
      'key' => '********',
      'secret' => '********',
      'use_ssl' => true,
      'region' => 'us-east-1',
      'use_path_style' => false,
    ),
  ),
  'passwordsalt' => '********',
  'secret' => '********',
  'trusted_domains' =>
  array (
    0 => '********',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => '********',
  'dbtype' => 'mysql',
  'version' => '14.0.0.0',
  'dbname' => '********',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => '********', 

I want to do external apps to this server, how to do that? is it OK just to add

  <?php

'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),

Thanks

Yes that should work. You just need to make sure that extra-apps is available at your configured url on the webserver.

just add in the config.php

'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
    1 =>
    array (
      'path' => '/var/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
  ),

mind the 'path' if you have installed the NextCloud server somewhere else