-
-
Notifications
You must be signed in to change notification settings - Fork 216
Configure CODE and Nextcloud office for Nextcloud snap
The following configuration was tested on a fresh Ubuntu Server 22.04 LTS for for x86_64 processor and Nextcloud snap
latest/stable
considering two scenarios:
- The Nextcloud snap handles SSL itself and is accessed directly via https and port forwarding without a reverse proxy or local DNS.
- The Nextcloud snap is behind a reverse proxy which handles SSL and redirects only http to the Nextcloud snap.
Install missing packages on host:
sudo apt install fontconfig glibc-source
Set host in /etc/hosts
on host: See Hosts & FQDN
127.0.0.1 localhost
127.0.1.1 your.domain.xyz hostname
## The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Set overwrite.cli.url
in config-php by adding the following line to your configuration:
'overwrite.cli.url' => 'https://cloud.yourdomain.com',
or issue command:
sudo nextcloud.occ config:system:set overwrite.cli.url --value="https://cloud.yourdomain.com"
Set trusted proxy in config-php if your Nextcloud snap is behind a reverse proxy.
'trusted_proxies' =>
array (
0 => 'your.proxy.ip',
),
or issue command:
sudo nextcloud.occ config:system:set trusted_poxies 0 --value="your.proxy.ip" ;
5a. Configure CODE & Office for AMD64:
These steps (in sequence) are required to reconfigure/reset and configure CODE & Nextcloud office on Nextcloud snap.
-
disable CODE:
sudo nextcloud.occ app:disable richdocumentscode
-
disable Office:
sudo nextcloud.occ app:disable richdocuments
-
delete old configs:
sudo nextcloud.occ config:app:delete richdocuments public_wopi_url
-
delete old configs:
sudo nextcloud.occ config:app:delete richdocuments wopi_url
-
enable Office:
sudo nextcloud.occ app:enable richdocuments
-
enable CODE:
sudo nextcloud.occ app:enable richdocumentscode
5b. Configure CODE & Office for ARM64:
These steps (in sequence) are required to reconfigure/reset and configure CODE & Nextcloud office on Nextcloud snap.
-
disable CODE:
sudo nextcloud.occ app:disable richdocumentscode_arm64
-
disable Office:
sudo nextcloud.occ app:disable richdocuments
-
delete old configs:
sudo nextcloud.occ config:app:delete richdocuments public_wopi_url
-
delete old configs:
sudo nextcloud.occ config:app:delete richdocuments wopi_url
-
enable Office:
sudo nextcloud.occ app:enable richdocuments
-
enable CODE:
sudo nextcloud.occ app:enable richdocumentscode_arm64
You should get a green check if you've followed the above sequence.
Your documents are not loading?
![Your image title](https://private-user-images.githubusercontent.com/54933878/273437832-8afc6365-07e8-4ad4-b81b-9fd4fa9de0c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzA0NzUsIm5iZiI6MTcyMjEzMDE3NSwicGF0aCI6Ii81NDkzMzg3OC8yNzM0Mzc4MzItOGFmYzYzNjUtMDdlOC00YWQ0LWI4MWItOWZkNGZhOWRlMGM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAxMjkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxNWQxOTRmMzNkOTRhMWQwMmFjNDA2ZjQyYjg1ZjkyNTlmNDVjM2I0ZmY0MjQ1MGY5NGFkNzljZGZkZTIxYzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.otPVRA32lmWr8PXscnCAJF_hQRQ1Csc6bq-1l_Hn3AU)
- Double check steps 1 to 4
- For ARM64 devices: There is an actual upstream issue with ARM64 devices since v23.5.5.
Keep tracking and help with providing your system and setup information here: https://github.com/CollaboraOnline/richdocumentscode/issues/226
See also:
Nextcloud snap Wiki, use all information and scripts at own risk