Configure connector app over command line

Hello,

I am in the process of creating an ansible role that will allow me to perform a completely unattended installation and configuration of the Onlyoffice document server and integrate it into Nextcloud. The installation of the document server will be done via a podman container. The installation of the connector app is done via Nextcloud occ.

What I am currently missing is a way to configure the Onlyoffice Connector app in Nextcloud via CLI. I have already searched the Nextcloud installation path to see if there is a configuration file for the connector app somewhere here, but unfortunately I did not find it. Also occ onlyoffice:documentserver --help does not give any possibility for configuration unfortunately.

What possibility do I have to configure the connector app completely via the CLI / bash?

Document Server version: 7.4.1.36
Connector version: 8.2.0
DMS (platform) version: Nextcloud Hub 6 (27.1.1)
OS: Debian 12 / AlmaLinux 9
Browser version: 117.0

Hello @Arny80Hexa
Iā€™m not familiar with podman, but probably these samples will be useful for occ:

sudo -u www-data php occ config:app:set onlyoffice DocumentServerUrl --value="https://your_DS_address/"
sudo -u www-data php occ config:app:set onlyoffice jwt_secret --value=your_JWT_secret

Probably further automation is needed. For example, to get JWT secret from container quickly. For docker: docker exec ID_of_container sudo documentserver-jwt-status.sh | grep -i "JWT secret" | awk '{print $4}'

1 Like