Nextcloud
Last modified by Manuel Leduc on 2024/06/19 11:49
Cristal 0.9+ This backend exists since 0.9
Table of Content
Nextcloud deployment
An easy way to deploy Nextcloud locally is to use docker compose, you can for instance use the docker-compose.yml file below.
Once the nextcloud server started, you can access it on http://localhost:9292/.
Use mariadb for the database, with db:3306 for the host, nextcloud for the user, nextcloud for the database and ADMINPASSWORD for the password.
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=ROOTPASSWORD
- MARIADB_PASSWORD=ADMINPASSWORD
- MARIADB_DATABASE=nextcloud
- MARIADB_USER=nextcloud
app:
image: nextcloud
restart: always
ports:
- 9292:80
links:
- db
volumes:
- ./html:/var/www/html
environment:
- MARIADB_PASSWORD=ADMINPASSWORD
- MARIADB_DATABASE=nextcloud
- MARIADB_USER=nextcloud
- MARIADB_HOST=db
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=ROOTPASSWORD
- MARIADB_PASSWORD=ADMINPASSWORD
- MARIADB_DATABASE=nextcloud
- MARIADB_USER=nextcloud
app:
image: nextcloud
restart: always
ports:
- 9292:80
links:
- db
volumes:
- ./html:/var/www/html
environment:
- MARIADB_PASSWORD=ADMINPASSWORD
- MARIADB_DATABASE=nextcloud
- MARIADB_USER=nextcloud
- MARIADB_HOST=db
CORS Configuration
Using the Nextcloud backend without any additional configuration will lead to CORS errors when Cristal is running on a different domain.
To allow Cristal to access a remote Nextcloud instance, follow the instructions below:
- Install https://apps.nextcloud.com/apps/webapppassword
- Go to the WebAppPassword section of the administration
- In the Allowed origins for webdav field, add the domain of the Cristal instance