https://github.com/georchestra/nextcloud-app
A NextCloud app to integrate NextCloud behind geOrchestra's Security Proxy and benefit from the SSO
https://github.com/georchestra/nextcloud-app
georchestra nextcloud php sso
Last synced: 2 months ago
JSON representation
A NextCloud app to integrate NextCloud behind geOrchestra's Security Proxy and benefit from the SSO
- Host: GitHub
- URL: https://github.com/georchestra/nextcloud-app
- Owner: georchestra
- Created: 2021-06-04T13:32:42.000Z (about 5 years ago)
- Default Branch: docker-integration
- Last Pushed: 2022-03-21T14:49:10.000Z (over 4 years ago)
- Last Synced: 2024-06-11T19:50:57.853Z (about 2 years ago)
- Topics: georchestra, nextcloud, php, sso
- Language: PHP
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Build and start
```bash
docker-compose build
docker-compose up -d
```
Now NextCloud should be available at: https://georchestra-127-0-1-1.traefik.me/files
## Run tests (do not pass yet)
```bash
docker-compose run \
--user `id -u` \
--entrypoint="" \
-v $(PWD)/extension:/src/extension \
nextcloud make -C /src/extension/ test
```
## Test an upgrade
```bash
# Start with version 22.2.2-apache
docker-compose down -v
docker-compose build --build-arg BASETAG=22.2.2-apache
docker-compose up -d
docker-compose logs -f nextcloud
# Copy src volume content in a temporary directory
sudo rm -rf /tmp/nextcloud-app_nextcloud_src
sudo cp -rp /home/amorvan/data/docker/volumes/nextcloud-app_nextcloud_src/_data /tmp/nextcloud-app_nextcloud_src
# Try an upgrade to 22.2.3-apache
sudo rm -rf /home/amorvan/data/docker/volumes/nextcloud-app_nextcloud_src/_data
sudo cp -rp /tmp/nextcloud-app_nextcloud_src /home/amorvan/data/docker/volumes/nextcloud-app_nextcloud_src/_data
docker-compose build --build-arg BASETAG=22.2.3-apache
docker-compose rm --stop -f nextcloud
docker-compose up -d
docker-compose logs -f nextcloud
```
## Links
Show NextCloud logs:
docker-compose exec nextcloud sh -c "tail -f data/nextcloud.log | jq"
NextCloud base image:
https://github.com/nextcloud/docker
Debuggage VSCode:
https://confluence.camptocamp.com/confluence/display/GEOR/NextCloud
Postmortem:
https://confluence.camptocamp.com/confluence/display/GEOR/Postmortem+Projet+Nextcloud
# Debug LDAP Sync
Set log level to debug:
```bash
docker-compose exec --user www-data nextcloud php occ config:system:set --type="integer" --value="0" "loglevel"
```
Run synchronization:
```bash
cat <