Installation
There are two ways to install the AppAPI: from the AppStore or from the source code.
Note
AppAPI 3.0.0 is the last version supported Nextcloud 27.
Installation from the AppStore
Simply navigate to the Apps management page in your Nextcloud and setup the AppAPI from the Tools category.
Installation from the source code
To install the AppAPI from the source code, follow these steps:
1. Clone the AppAPI repository into your apps directory
Clone the latest main branch:
git clone https://github.com/cloud-py-api/app_api.git
or clone a specific version by specifying the version tag:
git clone https://github.com/cloud-py-api/app_api.git --branch <version-tag>
where <version-tag>
is the version you want to install.
2. Build frontend assets in production mode
npm ci && npm run build
3. Enable the AppAPI
./occ app:enable --force app_api
To install it in development mode, follow the instructions on this page: Setting up dev environment.
4. Setup Deploy daemon
Upon the successful installation of the AppAPI, a one-time configuration is essential. Details on this configuration can be found in the subsequent section: Creation of Deploy Daemon.
4.1 Deploy daemon configuration
Deploy daemon configuration steps:
Go to the AppAPI admin settings.
Click on the “Register Daemon” button.
- Fill in the required fields:
Name
: unique name of the Deploy daemonDisplay name
: the name that will be displayed in the UIDeployment method
: by default you will need to choosedocker_install
,manual_install
is for development or custom use case of manual ExApp installationDaemon Host
: hostname/IP address + port of the Deploy daemonNextcloud URL
: autofilled with current domain, you might need to change the protocol to http/https depending on your setupSet as default daemon
: check if you want set new Deploy daemon as defaultEnable https
: check if your Deploy daemon (Docker Socket Proxy) is configured with TLS- Deploy Config:
Network
: Docker network name, depends on your networking setup, enforces to “host” if “Enable https” is checkedHaProxy password
: password for Docker Socket Proxy, if it is configured with TLSCompute Device
: CPU, CUDA or ROCm, depending on your hardware config on Deploy daemon host machineAdd additional option
(see Additional options): setup additional KEY + VALUE deploy config options
Check connection: to verify configuration is correct
Register: to save the Deploy daemon configuration
Deployment configuration examples can be found here.