Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-only] Further improvements to the ScienceMesh configuration #4184

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions examples/sciencemesh/sciencemesh-apps.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,49 @@
####### WORK IN PROGRESS #######
## Example configuration for the ScienceMesh app in ownCloud 10 / Nextcloud - Apps support
#
## This configuration file is to be used to enable Apps support in ScienceMesh.
## To contextualize this configuration for your deployment, please follow these steps:
#
# 1. In the [vars] section below, replace `your.revad.org` with your actual domain
# 2. Populate `wopi_endpoint` with your wopiserver endpoint
# 3. Define a shared secret, and match it with the secret defined in the wopiserver


[vars]
provider_domain = "your.revad.org"
wopi_endpoint = "http://wopi.docker:8880"
wopi_shared_secret = "shared-secret"

[log]
level = "debug"

[shared]
gatewaysvc = "your.revad.org:19000"
gatewaysvc = "{{ vars.provider_domain }}:19000"

[grpc]
address = "0.0.0.0:19100"

[grpc.services.appprovider]
[[grpc.services.appprovider]]
driver = "wopi"
custom_mime_types_json = "custom-mime-types-demo.json"
mime_types = ["application/vnd.oasis.opendocument.text", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.presentation", "text/rtf"]
app_provider_url = "your.revad.org:19100"
app_provider_url = "{{ grpc.services.appprovider[0].address }}"
language = "en-GB"

[grpc.services.appprovider.drivers.wopi]
iop_secret = "wopi-iop-secret"
wopi_url = "http://wopi.docker:8880/"
iop_secret = "{{ vars.wopi_shared_secret }}"
wopi_url = "{{ vars.wopi_endpoint }}"
app_name = "Collabora"
app_url = "http://collabora.docker:9980"
app_int_url = "http://collabora.docker:9980"


# [[grpc.services.appprovider]]
# driver = "wopi"
# custom_mime_types_json = "custom-mime-types-demo.json"
# mime_types = ["text/markdown", "application/compressed-markdown", "text/plain"]
# app_provider_url = "{{ grpc.services.appprovider[1].address }}"
#
# [grpc.services.appprovider.drivers.wopi]
# iop_secret = "{{ vars.wopi_shared_secret }}"
# wopi_url = "{{ vars.wopi_endpoint }}"
# app_name = "CodiMD"
# app_url = "https://codimd.docker"
# app_int_url = "https://codimd.docker"
44 changes: 27 additions & 17 deletions examples/sciencemesh/sciencemesh.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
## Example configuration for the ScienceMesh app in ownCloud 10 / Nextcloud
#
## To contextualize this configuration for your deployment:
## To contextualize this configuration for your deployment, please follow these steps:
#
# 1. Replace `your.revad.org` with your actual domain everywhere you find it
# 2. Replace `your.efss.org` in the [vars] section with your actual endpoint
# 3. Define appropriate secrets in the [vars] section
# 1. In the [vars] section below and everywhere you find it, replace `your.revad.org` with your actual domain
# 2. Replace `your.efss.org` with the actual endpoint of your EFSS system
# 3. Define appropriate secrets in the [vars] section, and match with the EFSS ScienceMesh app configuration
# 4. Provide appropriate SSL certificate and key files in the [http] section
#
# If you want to terminate the SSL connection to reva at your reverse proxy system
# (e.g. at your Kubernetes ingress), then you can configure reva to use http instead.
# For that, you need to follow these steps:
#
# 1. Remove the `certfile` and `keyfile` entries from the [http] section
# 2. Replace `:443` with `:80` (or any other suitable value) everywhere you find it
# 3. replace `https` with `http` in the `datagateway` and `data_server_url` entries


[vars]
provider_domain = "your.revad.org"
efss_sciencemesh_endpoint = "https://your.efss.org/index.php/apps/sciencemesh/"
machine_api_key = "machine-api-key"
efss_shared_secret = "shared-secret"

[http]
certfile = "/etc/revad/tls/your.revad.ssl.crt"
keyfile = "/etc/revad/tls/your.revad.ssl.key"

[log]
level = "debug"

[shared]
gatewaysvc = "your.revad.org:19000"
gatewaysvc = "{{ vars.provider_domain }}:19000"

[grpc.services.gateway]
address = "your.revad.org:19000"
address = ":19000"
authregistrysvc = "{{ grpc.services.authregistry.address }}"
appregistrysvc = "{{ grpc.services.appregistry.address }}"
storageregistrysvc = "{{ grpc.services.storageregistry.address }}"
Expand Down Expand Up @@ -193,16 +207,12 @@ file = ""

### HTTP ENDPOINTS ###

[http]
certfile = "/etc/revad/tls/your.revad.ssl.crt"
keyfile = "/etc/revad/tls/your.revad.ssl.key"

[http.services.appprovider]
address = "0.0.0.0:443"
address = ":443"
insecure = true

[http.services.datagateway]
address = "0.0.0.0:443"
address = ":443"

[[http.services.dataprovider]]
driver = "nextcloud"
Expand All @@ -219,7 +229,7 @@ driver = "ocmoutcoming"
machine_secret = "{{ vars.machine_api_key }}"

[http.services.sciencemesh]
address = "0.0.0.0:443"
address = ":443"
provider_domain = "{{ vars.provider_domain }}"
mesh_directory_url = "https://sciencemesh.cesnet.cz/iop/meshdir"
ocm_mount_point = "/sciencemesh"
Expand All @@ -231,26 +241,26 @@ smtp_server = "smtp.{{ vars.provider_domain }}"
smtp_port = 25

[http.services.ocmprovider]
address = "0.0.0.0:443"
address = ":443"
ocm_prefix = "ocm"
provider = "Reva for ownCloud/Nextcloud"
endpoint = "https://{{ vars.provider_domain }}"
enable_webapp = true
enable_datatx = true

[http.services.ocmd]
address = "0.0.0.0:443"
address = ":443"
prefix = "ocm"

[http.services.ocmd.config]
host = "{{ vars.provider_domain }}"

[http.services.ocs]
address = "0.0.0.0:443"
address = ":443"
prefix = "ocs"

[http.services.ocdav]
address = "0.0.0.0:443"
address = ":443"

[http.services.prometheus]
[http.services.sysinfo]
Expand Down