Compare commits

..

6 Commits

Author SHA1 Message Date
Thomas Schweiger
dc3044868e fix: removed unwanted newlines 2025-09-25 15:34:01 +02:00
Thomas Schweiger
3417413e61 fix: remove unneeded file 2025-09-25 12:11:29 +02:00
Thomas Schweiger
5003888b9f enhance: enable OCM app in a nice way 2025-09-25 12:09:51 +02:00
Thomas Schweiger
2c049e34f0 new config to have ocm enabled 2025-09-24 07:47:26 +02:00
Thomas Schweiger
d042ce7b61 Revert logging options 2025-09-23 11:39:43 +02:00
Thomas Schweiger
52227d4f61 Enable OCM in UI and backend 2025-09-23 11:07:35 +02:00
9 changed files with 85 additions and 8 deletions

View File

@@ -59,7 +59,7 @@ TRAEFIK_SERVICES_TLS_CONFIG="tls.certresolver=letsencrypt"
# stores: # stores:
# - default # - default
# #
# The certificates need to be copied into ./certs/, the absolute path inside the container is /certs/. # The certificates need to copied into ./certs/, the absolute path inside the container is /certs/.
# You can also use TRAEFIK_CERTS_DIR=/path/on/host to set the path to the certificates directory. # You can also use TRAEFIK_CERTS_DIR=/path/on/host to set the path to the certificates directory.
# Enable the access log for Traefik by setting the following variable to true. # Enable the access log for Traefik by setting the following variable to true.
TRAEFIK_ACCESS_LOG= TRAEFIK_ACCESS_LOG=

View File

@@ -2336,7 +2336,7 @@
"always" "always"
], ],
"usePasswordModifyExtendedOp": [ "usePasswordModifyExtendedOp": [
"true" "false"
], ],
"trustEmail": [ "trustEmail": [
"false" "false"

View File

@@ -8,7 +8,6 @@ directives:
- 'wss://${COMPANION_DOMAIN|companion.opencloud.test}/' - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}/'
- 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/'
- 'https://${IDP_DOMAIN|keycloak.opencloud.test}/' - 'https://${IDP_DOMAIN|keycloak.opencloud.test}/'
- 'https://update.opencloud.eu/'
default-src: default-src:
- '''none''' - '''none'''
font-src: font-src:

View 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"
}
]
}
]

14
config/opencloud/web.yaml Normal file
View File

@@ -0,0 +1,14 @@
# OpenCloud web configuration
web:
config:
apps:
- files
- search
- text-editor
- pdf-viewer
- external
- admin-settings
- epub-reader
- preview
- app-store
- ocm

View File

@@ -51,13 +51,25 @@ services:
OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:-1}" 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_DIGITS: "${OC_PASSWORD_POLICY_MIN_DIGITS:-1}"
OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS:-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"
GRAPH_INCLUDE_OCM_SHAREES: "true"
volumes: volumes:
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml - ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
- ./config/opencloud/banned-password-list.txt:/etc/opencloud/banned-password-list.txt - ./config/opencloud/banned-password-list.txt:/etc/opencloud/banned-password-list.txt
- ./config/opencloud/opencloud.storage.ocmproviders.json:/etc/opencloud/ocmproviders.json
- ./config/opencloud/web.yaml:/etc/opencloud/web.yaml
# configure the .env file to use own paths instead of docker internal volumes # configure the .env file to use own paths instead of docker internal volumes
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
- ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud - ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
- ${OC_APPS_DIR:-./config/opencloud/apps}:/var/lib/opencloud/web/assets/apps - ${OC_APPS_DIR:-./config/opencloud/apps}:/var/lib/opencloud/web/assets/apps
logging: logging:
driver: ${LOG_DRIVER:-local} driver: ${LOG_DRIVER:-local}
restart: always restart: always

View File

@@ -44,7 +44,7 @@ services:
# The openCloud users need to be able to edit their account in the externa IdP # The openCloud users need to be able to edit their account in the externa IdP
WEB_OPTION_ACCOUNT_EDIT_LINK_HREF: ${IDP_ACCOUNT_URL} WEB_OPTION_ACCOUNT_EDIT_LINK_HREF: ${IDP_ACCOUNT_URL}
ldap-server: ldap-server:
image: bitnamilegacy/openldap:2.6 image: bitnami/openldap:2.6
networks: networks:
opencloud-net: opencloud-net:
entrypoint: [ "/bin/sh", "/opt/bitnami/scripts/openldap/docker-entrypoint-override.sh", "/opt/bitnami/scripts/openldap/run.sh" ] entrypoint: [ "/bin/sh", "/opt/bitnami/scripts/openldap/docker-entrypoint-override.sh", "/opt/bitnami/scripts/openldap/run.sh" ]
@@ -57,6 +57,9 @@ services:
LDAP_TLS_KEY_FILE: /opt/bitnami/openldap/share/openldap.key LDAP_TLS_KEY_FILE: /opt/bitnami/openldap/share/openldap.key
LDAP_ROOT: "dc=opencloud,dc=eu" LDAP_ROOT: "dc=opencloud,dc=eu"
LDAP_ADMIN_PASSWORD: ${LDAP_BIND_PASSWORD:-admin} LDAP_ADMIN_PASSWORD: ${LDAP_BIND_PASSWORD:-admin}
ports:
- "127.0.0.1:389:1389"
- "127.0.0.1:636:1636"
volumes: volumes:
# Only use the base ldif file to create the base structure # Only use the base ldif file to create the base structure
- ./config/ldap/ldif/10_base.ldif:/ldifs/10_base.ldif - ./config/ldap/ldif/10_base.ldif:/ldifs/10_base.ldif

View File

@@ -51,6 +51,9 @@ services:
LDAP_TLS_KEY_FILE: /opt/bitnami/openldap/share/openldap.key LDAP_TLS_KEY_FILE: /opt/bitnami/openldap/share/openldap.key
LDAP_ROOT: "dc=opencloud,dc=eu" LDAP_ROOT: "dc=opencloud,dc=eu"
LDAP_ADMIN_PASSWORD: ${LDAP_BIND_PASSWORD:-admin} LDAP_ADMIN_PASSWORD: ${LDAP_BIND_PASSWORD:-admin}
ports:
- "127.0.0.1:389:1389"
- "127.0.0.1:636:1636"
volumes: volumes:
- ./config/ldap/ldif/10_base.ldif:/ldifs/10_base.ldif - ./config/ldap/ldif/10_base.ldif:/ldifs/10_base.ldif
- ./config/ldap/ldif/20_admin.ldif:/ldifs/20_admin.ldif - ./config/ldap/ldif/20_admin.ldif:/ldifs/20_admin.ldif
@@ -62,7 +65,7 @@ services:
restart: always restart: always
postgres: postgres:
image: postgres:17-alpine image: postgres:alpine
networks: networks:
opencloud-net: opencloud-net:
volumes: volumes:

View File

@@ -1,7 +1,7 @@
--- ---
services: services:
postgres: postgres:
image: postgres:17-alpine image: postgres:alpine
networks: networks:
opencloud-net: opencloud-net:
volumes: volumes: