View Code? Open in Web Editor
NEW
This project forked from splitt3r/nextcloud-dotnet-microservice
.NET Microservice example for Nextcloud (https://github.com/cloud-py-api/app_api). This is only a playground.
License: MIT License
JavaScript 11.86%
C# 33.74%
CSS 8.54%
HTML 1.07%
Vue 43.36%
Dockerfile 1.43%
nextcloud-dotnet-microservice's Introduction
.NET Microservice Nextcloud app demo
- Run bash e.g. WSL not PowerShell! Some strange quote problems and execute the following steps
docker exec -it --user www-data nextcloud php occ config:system:set loglevel --value=0
docker exec -it --user www-data nextcloud php occ app:install app_api
- Now you need to create the manual_install daemon via UI (e. g. http://localhost:8080/settings/admin/app_api)
- Set the shared secret in the
docker-compose.yml
file via Nextcloud__Secret
env var and use the same for the next cmd
Register the app via local daemon
docker exec -it --user www-data nextcloud php occ app_api:app:register --force-scopes --wait-finish --json-info "{\"appid\":\"dotnet_microservice\",\"name\":\".NET Microservice\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"dotnet-microservice\",\"port\":8080,\"scopes\":{\"required\":[\"FILES\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" dotnet_microservice manual_install
Register the app via local daemon with Visual Studio debugger attached
docker exec -it --user www-data nextcloud php occ app_api:app:register --force-scopes --wait-finish --json-info "{\"appid\":\"dotnet_microservice\",\"name\":\".NET Microservice\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":5047,\"scopes\":{\"required\":[\"FILES\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" dotnet_microservice manual_install
nextcloud-dotnet-microservice's People
Contributors