From 5ff8d3f3dcd8583b32b07362276a3c9e63e43d3d Mon Sep 17 00:00:00 2001 From: Ishank Arora Date: Wed, 16 Jun 2021 10:19:13 +0200 Subject: [PATCH] Change app provider and registry config --- examples/ocmd/ocmd-server-1.toml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/examples/ocmd/ocmd-server-1.toml b/examples/ocmd/ocmd-server-1.toml index 62b13d83a0..5293d50262 100644 --- a/examples/ocmd/ocmd-server-1.toml +++ b/examples/ocmd/ocmd-server-1.toml @@ -77,21 +77,18 @@ providers = "providers.demo.json" driver = "memory" [grpc.services.appprovider] -driver = "demo" -iopsecret = "testsecret" -wopiurl = "http://0.0.0.0:8880/" -wopibridgeurl = "http://localhost:8000/wopib" +driver = "wopi" + +[grpc.services.appprovider.drivers.wopi] +iop_secret = "hello" +wopi_url = "http://0.0.0.0:8880/" +wopi_bridge_url = "http://localhost:8000/wopib" [grpc.services.appregistry] driver = "static" -[grpc.services.appregistry.static.rules] -"text/plain" = "localhost:19000" -"text/markdown" = "localhost:19000" -"application/compressed-markdown" = "localhost:19000" -"application/vnd.oasis.opendocument.text" = "localhost:19000" -"application/vnd.oasis.opendocument.spreadsheet" = "localhost:19000" -"application/vnd.oasis.opendocument.presentation" = "localhost:19000" +[grpc.services.appregistry.drivers.static.providers] +"localhost:19000" = {"address" = "localhost:19000", "name" = "WOPIServer", mimetypes = ["text/plain", "text/markdown", "application/compressed-markdown", "application/vnd.oasis.opendocument.text", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.presentation"]} [grpc.services.storageprovider] driver = "localhome"