mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-06-08 20:20:04 +08:00
Enable OCM in UI and backend
This commit is contained in:
46
config/opencloud/opencloud.storage.ocmproviders.json
Normal file
46
config/opencloud/opencloud.storage.ocmproviders.json
Normal file
@@ -0,0 +1,46 @@
|
||||
[
|
||||
{
|
||||
"name": "host.docker.internal:9200",
|
||||
"full_name": "host.docker.internal 9200",
|
||||
"organization": "OpenCloud",
|
||||
"domain": "host.docker.internal:9200",
|
||||
"homepage": "https://opencloud.eu",
|
||||
"services": [
|
||||
{
|
||||
"endpoint": {
|
||||
"type": {
|
||||
"name": "OCM",
|
||||
"description": "OpenCloud Open Cloud Mesh API"
|
||||
},
|
||||
"name": "OpenCloud - OCM API",
|
||||
"path": "https://host.docker.internal:9200/ocm/",
|
||||
"is_monitored": true
|
||||
},
|
||||
"api_version": "0.0.1",
|
||||
"host": "host.docker.internal:9200"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cloud.opencloud.test",
|
||||
"full_name": "cloud.opencloud.test",
|
||||
"organization": "OpenCloud",
|
||||
"domain": "cloud.opencloud.test",
|
||||
"homepage": "https://opencloud.eu",
|
||||
"services": [
|
||||
{
|
||||
"endpoint": {
|
||||
"type": {
|
||||
"name": "OCM",
|
||||
"description": "OpenCloud Open Cloud Mesh API"
|
||||
},
|
||||
"name": "OpenCloud - OCM API",
|
||||
"path": "https://cloud.opencloud.test/ocm/",
|
||||
"is_monitored": true
|
||||
},
|
||||
"api_version": "0.0.1",
|
||||
"host": "cloud.opencloud.test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
21
config/opencloud/opencloud.web.config.json
Normal file
21
config/opencloud/opencloud.web.config.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"server": "https://cloud.opencloud.test",
|
||||
"theme": "https://cloud.opencloud.test/themes/opencloud/theme.json",
|
||||
"options": {
|
||||
"contextHelpersReadMore": true
|
||||
},
|
||||
"apps": [
|
||||
"files",
|
||||
"text-editor",
|
||||
"pdf-viewer",
|
||||
"search",
|
||||
"external",
|
||||
"admin-settings",
|
||||
"webfinger",
|
||||
"epub-reader",
|
||||
"app-store",
|
||||
"activities",
|
||||
"preview",
|
||||
"ocm"
|
||||
]
|
||||
}
|
||||
@@ -16,8 +16,8 @@ services:
|
||||
# enable services that are not started automatically
|
||||
OC_ADD_RUN_SERVICES: ${START_ADDITIONAL_SERVICES}
|
||||
OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}
|
||||
OC_LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
OC_LOG_COLOR: "${LOG_PRETTY:-false}"
|
||||
OC_LOG_LEVEL: ${LOG_LEVEL:-warn}
|
||||
OC_LOG_COLOR: "${LOG_PRETTY:-true}"
|
||||
OC_LOG_PRETTY: "${LOG_PRETTY:-false}"
|
||||
# do not use SSL between the reverse proxy and OpenCloud
|
||||
PROXY_TLS: "false"
|
||||
@@ -51,13 +51,35 @@ services:
|
||||
OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:-1}"
|
||||
OC_PASSWORD_POLICY_MIN_DIGITS: "${OC_PASSWORD_POLICY_MIN_DIGITS:-1}"
|
||||
OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS:-1}"
|
||||
|
||||
# OCM
|
||||
OC_ENABLE_OCM: "true"
|
||||
OCM_OCM_PROVIDER_AUTHORIZER_PROVIDERS_FILE: "/etc/opencloud/ocmproviders.json"
|
||||
OCM_OCM_INVITE_MANAGER_INSECURE: "true"
|
||||
OCM_OCM_SHARE_PROVIDER_INSECURE: "true"
|
||||
OCM_OCM_STORAGE_PROVIDER_INSECURE: "true"
|
||||
|
||||
# WEB
|
||||
WEB_ASSET_CORE_PATH: ${WEB_ASSET_CORE_PATH:-/web/dist}
|
||||
WEB_ASSET_APPS_PATH: ${WEB_ASSET_APPS_PATH:-/web/apps}
|
||||
WEB_UI_CONFIG_FILE: ${WEB_UI_CONFIG_FILE:-/web/config.json}
|
||||
|
||||
#FRONTEND
|
||||
FRONTEND_SEARCH_MIN_LENGTH: '2'
|
||||
FRONTEND_OCS_ENABLE_DENIALS: 'true'
|
||||
FRONTEND_FULL_TEXT_SEARCH_ENABLED: 'true'
|
||||
GRAPH_INCLUDE_OCM_SHAREES: 'true'
|
||||
|
||||
volumes:
|
||||
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
|
||||
- ./config/opencloud/banned-password-list.txt:/etc/opencloud/banned-password-list.txt
|
||||
- ./config/opencloud/opencloud.web.config.json:/web/config.json
|
||||
- ./config/opencloud/opencloud.storage.ocmproviders.json:/etc/opencloud/ocmproviders.json
|
||||
# configure the .env file to use own paths instead of docker internal volumes
|
||||
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
|
||||
- ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
|
||||
- ${OC_APPS_DIR:-./config/opencloud/apps}:/var/lib/opencloud/web/assets/apps
|
||||
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user