-
Notifications
You must be signed in to change notification settings - Fork 183
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
[draft] ocm add to the ocis-all #10420
Open
2403905
wants to merge
3
commits into
owncloud:master
Choose a base branch
from
2403905:ocm-docker
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -12,7 +12,7 @@ INSECURE=true | |||||
# Note: Traefik is always enabled and can't be disabled. | ||||||
# Serve Traefik dashboard. | ||||||
# Defaults to "false". | ||||||
TRAEFIK_DASHBOARD= | ||||||
TRAEFIK_DASHBOARD=true | ||||||
# Domain of Traefik, where you can find the dashboard. | ||||||
# Defaults to "traefik.owncloud.test" | ||||||
TRAEFIK_DOMAIN= | ||||||
|
@@ -227,3 +227,14 @@ INBUCKET_DOMAIN= | |||||
# ALL supplemental configs must be added here, whether commented or not. | ||||||
# Each var must either be empty or contain :path/file.yml | ||||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${MONITORING:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${INBUCKET:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-} | ||||||
|
||||||
### OCM Settings ### | ||||||
# Note: the OCM configuration is optional and can be used to connect to an OCM instance. https://owncloud.dev/services/ocm/ | ||||||
# There are several setting files that do not allow variables like ocm.providers.json, ocis.web.config.json, ocis.ocm.web.config.json | ||||||
# This files need to be configured manualy for the real valuse of the OCIS_OCM_DOMAIN and OCIS_DOMAIN | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
# Domain of oCIS OCM instace, where you can find the frontend. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
# Defaults to "ocis.ocm.owncloud.test" | ||||||
OCIS_OCM_DOMAIN= | ||||||
# An eMail address that is used for sending Infinite Scale notification eMails | ||||||
# like "ocis notifications <[email protected]>". | ||||||
SMTP_SENDER= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,83 @@ | ||||||
--- | ||||||
services: | ||||||
traefik: | ||||||
networks: | ||||||
ocis-ocm-net: | ||||||
aliases: | ||||||
- ${COLLABORA_OCM_DOMAIN:-collabora.ocm.owncloud.test} | ||||||
- ${WOPISERVER_OCM_DOMAIN:-wopiserver.ocm.owncloud.test} | ||||||
ocis-ocm: | ||||||
environment: | ||||||
# make collabora the secure view app | ||||||
FRONTEND_APP_HANDLER_SECURE_VIEW_APP_ADDR: com.owncloud.api.collaboration.Collabora | ||||||
|
||||||
collaboration-ocm: | ||||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest} | ||||||
networks: | ||||||
ocis-ocm-net: | ||||||
depends_on: | ||||||
ocis: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isn't it
Suggested change
|
||||||
condition: service_started | ||||||
collabora-ocm: | ||||||
condition: service_healthy | ||||||
entrypoint: | ||||||
- /bin/sh | ||||||
command: [ "-c", "ocis collaboration server" ] | ||||||
environment: | ||||||
COLLABORATION_GRPC_ADDR: collaboration-ocm:9301 | ||||||
COLLABORATION_HTTP_ADDR: collaboration-ocm:9300 | ||||||
MICRO_REGISTRY: "nats-js-kv" | ||||||
MICRO_REGISTRY_ADDRESS: "ocis-ocm:9233" | ||||||
COLLABORATION_WOPI_SRC: https://${WOPISERVER_OCM_DOMAIN:-wopiserver.ocm.owncloud.test} | ||||||
COLLABORATION_APP_NAME: "Collabora" | ||||||
COLLABORATION_APP_ADDR: https://${COLLABORA_OCM_DOMAIN:-collabora.ocm.owncloud.test} | ||||||
COLLABORATION_APP_ICON: https://${COLLABORA_OCM_DOMAIN:-collabora.ocm.owncloud.test}/favicon.ico | ||||||
COLLABORATION_APP_LOCKNAME: "com.github.owncloud.ocm.collaboration" | ||||||
COLLABORATION_APP_INSECURE: "${INSECURE:-true}" | ||||||
COLLABORATION_CS3API_DATAGATEWAY_INSECURE: "${INSECURE:-true}" | ||||||
COLLABORATION_LOG_LEVEL: ${LOG_LEVEL:-debug} | ||||||
OCIS_URL: https://${OCIS_OCM_DOMAIN:-ocis.ocm.owncloud.test} | ||||||
volumes: | ||||||
# configure the .env file to use own paths instead of docker internal volumes | ||||||
- ${OCIS_OCM_CONFIG_DIR:-ocis-ocm-config}:/etc/ocis | ||||||
labels: | ||||||
- "traefik.enable=true" | ||||||
- "traefik.http.routers.collaboration-ocm.entrypoints=https" | ||||||
- "traefik.http.routers.collaboration-ocm.rule=Host(`${WOPISERVER_OCM_DOMAIN:-wopiserver.ocm.owncloud.test}`)" | ||||||
- "traefik.http.routers.collaboration-ocm.tls.certresolver=http" | ||||||
- "traefik.http.routers.collaboration-ocm.service=collaboration-ocm" | ||||||
- "traefik.http.services.collaboration-ocm.loadbalancer.server.port=9300" | ||||||
logging: | ||||||
driver: ${LOG_DRIVER:-local} | ||||||
restart: always | ||||||
|
||||||
collabora-ocm: | ||||||
image: collabora/code:24.04.5.1.1 | ||||||
networks: | ||||||
ocis-ocm-net: | ||||||
environment: | ||||||
aliasgroup1: https://${WOPISERVER_OCM_DOMAIN:-wopiserver.ocm.owncloud.test}:443 | ||||||
DONT_GEN_SSL_CERT: "YES" | ||||||
extra_params: | | ||||||
--o:ssl.enable=${COLLABORA_SSL_ENABLE:-true} \ | ||||||
--o:ssl.ssl_verification=${COLLABORA_SSL_VERIFICATION:-true} \ | ||||||
--o:ssl.termination=true \ | ||||||
--o:welcome.enable=false \ | ||||||
--o:net.frame_ancestors=${OCIS_DOMAIN:-ocis.ocm.owncloud.test} | ||||||
username: ${COLLABORA_ADMIN_USER:-admin} | ||||||
password: ${COLLABORA_ADMIN_PASSWORD:-admin} | ||||||
cap_add: | ||||||
- MKNOD | ||||||
labels: | ||||||
- "traefik.enable=true" | ||||||
- "traefik.http.routers.collabora-ocm.entrypoints=https" | ||||||
- "traefik.http.routers.collabora-ocm.rule=Host(`${COLLABORA_OCM_DOMAIN:-collabora.ocm.owncloud.test}`)" | ||||||
- "traefik.http.routers.collabora-ocm.tls.certresolver=http" | ||||||
- "traefik.http.routers.collabora-ocm.service=collabora-ocm" | ||||||
- "traefik.http.services.collabora-ocm.loadbalancer.server.port=9980" | ||||||
logging: | ||||||
driver: ${LOG_DRIVER:-local} | ||||||
restart: always | ||||||
command: ["bash", "-c", "coolconfig generate-proof-key ; /start-collabora-online.sh"] | ||||||
healthcheck: | ||||||
test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
directives: | ||
child-src: | ||
- '''self''' | ||
connect-src: | ||
- '''self''' | ||
- 'blob:' | ||
- 'https://${COMPANION_DOMAIN|companion.ocm.owncloud.test}/' | ||
- 'wss://${COMPANION_DOMAIN|companion.ocm.owncloud.test}/' | ||
- 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' | ||
default-src: | ||
- '''none''' | ||
font-src: | ||
- '''self''' | ||
frame-ancestors: | ||
- '''self''' | ||
frame-src: | ||
- '''self''' | ||
- 'blob:' | ||
- 'https://embed.diagrams.net/' | ||
# In contrary to bash and docker the default is given after the | character | ||
- 'https://${ONLYOFFICE_DOMAIN|onlyoffice.ocm.owncloud.test}/' | ||
- 'https://${COLLABORA_DOMAIN|collabora.ocm.owncloud.test}/' | ||
# This is needed for the external-sites web extension when embedding sites | ||
- 'https://owncloud.dev' | ||
img-src: | ||
- '''self''' | ||
- 'data:' | ||
- 'blob:' | ||
- 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' | ||
# In contrary to bash and docker the default is given after the | character | ||
- 'https://${ONLYOFFICE_DOMAIN|onlyoffice.ocm.owncloud.test}/' | ||
- 'https://${COLLABORA_DOMAIN|collabora.ocm.owncloud.test}/' | ||
manifest-src: | ||
- '''self''' | ||
media-src: | ||
- '''self''' | ||
object-src: | ||
- '''self''' | ||
- 'blob:' | ||
script-src: | ||
- '''self''' | ||
- '''unsafe-inline''' | ||
style-src: | ||
- '''self''' | ||
- '''unsafe-inline''' |
27 changes: 27 additions & 0 deletions
27
deployments/examples/ocis_full/config/ocis/ocis.ocm.web.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"server": "https://ocis.ocm.owncloud.test", | ||
"theme": "https://ocis.ocm.owncloud.test/themes/owncloud/theme.json", | ||
"openIdConnect": { | ||
"metadata_url": "https://ocis.ocm.owncloud.test/.well-known/openid-configuration", | ||
"authority": "https://ocis.ocm.owncloud.test", | ||
"client_id": "web", | ||
"response_type": "code" | ||
}, | ||
"options": { | ||
"contextHelpersReadMore": true | ||
}, | ||
"apps": [ | ||
"files", | ||
"text-editor", | ||
"pdf-viewer", | ||
"search", | ||
"external", | ||
"admin-settings", | ||
"ocm", | ||
"webfinger", | ||
"epub-reader", | ||
"app-store", | ||
"activities", | ||
"preview" | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
deployments/examples/ocis_full/config/ocis/ocis.web.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"server": "https://ocis.owncloud.test", | ||
"theme": "https://ocis.owncloud.test/themes/owncloud/theme.json", | ||
"openIdConnect": { | ||
"metadata_url": "https://ocis.owncloud.test/.well-known/openid-configuration", | ||
"authority": "https://ocis.owncloud.test", | ||
"client_id": "web", | ||
"response_type": "code" | ||
}, | ||
"options": { | ||
"contextHelpersReadMore": true | ||
}, | ||
"apps": [ | ||
"files", | ||
"text-editor", | ||
"pdf-viewer", | ||
"search", | ||
"external", | ||
"admin-settings", | ||
"ocm", | ||
"webfinger", | ||
"epub-reader", | ||
"app-store", | ||
"activities", | ||
"preview" | ||
] | ||
} |
72 changes: 72 additions & 0 deletions
72
deployments/examples/ocis_full/config/ocis/ocm.providers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"name": "ocis-server", | ||
"full_name": "first-ocis-instance", | ||
"organization": "Owncloud", | ||
"domain": "ocis.owncloud.test", | ||
"homepage": "https://owncloud.com", | ||
"services": [ | ||
{ | ||
"endpoint": { | ||
"type": { | ||
"name": "OCM", | ||
"description": "ocis.owncloud.test Open Cloud Mesh API" | ||
}, | ||
"name": "ocis - OCM API", | ||
"path": "https://ocis.owncloud.test/ocm/", | ||
"is_monitored": true | ||
}, | ||
"api_version": "0.0.1", | ||
"host": "ocis.owncloud.test" | ||
}, | ||
{ | ||
"endpoint": { | ||
"type": { | ||
"name": "Webdav", | ||
"description": "ocis.owncloud.test Webdav API" | ||
}, | ||
"name": "ocis - Webdav API", | ||
"path": "https://ocis.owncloud.test/dav/", | ||
"is_monitored": true | ||
}, | ||
"api_version": "0.0.1", | ||
"host": "ocis.owncloud.test" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "federation-ocis-server", | ||
"full_name": "Ocm ocis", | ||
"organization": "Owncloud", | ||
"domain": "ocis.ocm.owncloud.test", | ||
"homepage": "https://owncloud.com", | ||
"services": [ | ||
{ | ||
"endpoint": { | ||
"type": { | ||
"name": "OCM", | ||
"description": "CERNBox Open Cloud Mesh API" | ||
}, | ||
"name": "CERNBox - OCM API", | ||
"path": "https://ocis.ocm.owncloud.test/ocm/", | ||
"is_monitored": true | ||
}, | ||
"api_version": "0.0.1", | ||
"host": "ocis.ocm.owncloud.test" | ||
}, | ||
{ | ||
"endpoint": { | ||
"type": { | ||
"name": "Webdav", | ||
"description": "ocis.ocm.owncloud.test Webdav API" | ||
}, | ||
"name": "ocis.ocm - Webdav API", | ||
"path": "https://ocis.ocm.owncloud.test/dav/", | ||
"is_monitored": true | ||
}, | ||
"api_version": "0.0.1", | ||
"host": "ocis.ocm.owncloud.test" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
services: | ||
|
||
ocis-ocm: | ||
command: [ "-c", "ocis init || true; dlv --listen=:40000 --headless=true --continue --check-go-version=false --api-version=2 --accept-multiclient exec /usr/bin/ocis server" ] | ||
environment: | ||
OCIS_LOG_LEVEL: debug | ||
ports: | ||
- 40004:40000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the
ocis_full
example in the admin docs and should reference therefore to it to avoid confusion.