Skip to content

Commit

Permalink
Merge pull request #79 from glpatcern/main
Browse files Browse the repository at this point in the history
Added apps related config
  • Loading branch information
michielbdejong authored Jun 16, 2023
2 parents bcec2ee + 3e770fb commit 0edb824
Showing 1 changed file with 37 additions and 28 deletions.
65 changes: 37 additions & 28 deletions servers/revad/sciencemesh1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ address = "0.0.0.0:19000"
[grpc.services.gateway]
authregistrysvc = "your.revad.com:19000"
appprovidersvc = "your.revad.com:19000"
appregistry = "your.revad.com:19000"
appregistrysvc = "your.revad.com:19000"
storageregistrysvc = "your.revad.com:19000"
preferencessvc = "your.revad.com:19000"
userprovidersvc = "your.revad.com:19000"
Expand All @@ -24,6 +24,29 @@ commit_share_to_storage_grant = false
datagateway = "https://your.revad.com/data"
transfer_expires = 6 # give it a moment

[grpc.services.appregistry]
driver = "static"

[grpc.services.appregistry.drivers.static]
mime_types = [
{"mime_type" = "text/plain", "extension" = "txt", "name" = "Text file", "description" = "Text file", "allow_creation" = true},
{"mime_type" = "text/markdown", "extension" = "md", "name" = "Markdown file", "description" = "Markdown file", "allow_creation" = true},
{"mime_type" = "application/vnd.oasis.opendocument.text", "extension" = "odt", "name" = "OpenDocument", "description" = "OpenDocument text document", "default_app" = "Collabora", "allow_creation" = true},
{"mime_type" = "application/vnd.oasis.opendocument.spreadsheet", "extension" = "ods", "name" = "OpenSpreadsheet", "description" = "OpenDocument spreadsheet document", "default_app" = "Collabora", "allow_creation" = true},
{"mime_type" = "application/vnd.oasis.opendocument.presentation", "extension" = "odp", "name" = "OpenPresentation", "description" = "OpenDocument presentation document", "default_app" = "Collabora", "allow_creation" = true},
{"mime_type" = "application/vnd.jupyter", "extension" = "ipynb", "name" = "Jupyter Notebook", "description" = "Jupyter Notebook"}
]

[grpc.services.appprovider]
driver = "wopi"
app_provider_url = "localhost:19000"

[grpc.services.appprovider.drivers.wopi]
iop_secret = "shared-secret-with-wopiserver"
wopi_url = "http://0.0.0.0:8880/"
app_name = "Collabora"
app_url = "https://your-collabora-server.org:9980"

[grpc.services.authregistry]
driver = "static"

Expand All @@ -32,6 +55,14 @@ basic = "your.revad.com:19000"
ocmshares = "your.revad.com:19001"
machine = "your.revad.com:19030"

[grpc.services.authprovider]
auth_manager = "nextcloud"

[grpc.services.authprovider.auth_managers.nextcloud]
endpoint = "https://your.efss.com/index.php/apps/sciencemesh/"
shared_secret = "shared-secret-1"
mock_http = false

[grpc.services.storageregistry]
driver = "static"

Expand Down Expand Up @@ -83,23 +114,6 @@ refresh = 900
[grpc.services.publicshareprovider]
driver = "memory"

[grpc.services.appprovider]
driver = "demo"
iopsecret = "testsecret"
wopiurl = "http://0.0.0.0:8880/"
wopibridgeurl = "http://localhost:8000/wopib"

[grpc.services.appregistry]
driver = "static"

[grpc.services.appregistry.static.rules]
"text/plain" = "your.revad.com:19000"
"text/markdown" = "your.revad.com:19000"
"application/compressed-markdown" = "your.revad.com:19000"
"application/vnd.oasis.opendocument.text" = "your.revad.com:19000"
"application/vnd.oasis.opendocument.spreadsheet" = "your.revad.com:19000"
"application/vnd.oasis.opendocument.presentation" = "your.revad.com:19000"

[grpc.services.storageprovider]
driver = "nextcloud"
expose_data_server = true
Expand All @@ -111,14 +125,6 @@ endpoint = "https://your.efss.com/index.php/apps/sciencemesh/"
shared_secret = "shared-secret-1"
mock_http = false

[grpc.services.authprovider]
auth_manager = "nextcloud"

[grpc.services.authprovider.auth_managers.nextcloud]
endpoint = "https://your.efss.com/index.php/apps/sciencemesh/"
shared_secret = "shared-secret-1"
mock_http = false

[grpc.services.userprovider]
driver = "nextcloud"

Expand Down Expand Up @@ -153,8 +159,9 @@ address = "0.0.0.0:443"
certfile = "/etc/revad/tls/revanc1.crt"
keyfile = "/etc/revad/tls/revanc1.key"

[http.services.appprovider]

[http.services.sciencemesh]
invite_link_template = "{{.MeshDirectoryURL}}?token={{.Token}}&providerDomain=your.revad.com"
provider_domain = "your.revad.com"
mesh_directory_url = "https://sciencemesh.cesnet.cz/iop/meshdir"

Expand All @@ -171,11 +178,13 @@ mock_http = false

[http.services.ocmprovider]
ocm_prefix = "ocm"
provider = "your.revad.com"
provider = "your EFSS name"
endpoint = "https://your.revad.com"
enable_webapp = true
enable_datatx = true

[http.services.ocsprovider]

[http.services.ocmd]
prefix = "ocm"

Expand Down

0 comments on commit 0edb824

Please sign in to comment.