Skip to content
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
6 changes: 3 additions & 3 deletions ix-dev/community/opencloud/app.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
app_version: 3.7.0
app_version: 4.0.1
capabilities: []
categories:
- storage
Expand Down Expand Up @@ -34,7 +34,7 @@ screenshots: []
sources:
- https://docs.opencloud.eu/
- https://github.com/OpenCloud/OpenCloud
- https://hub.docker.com/r/opencloudeu/opencloud-rolling
- https://hub.docker.com/r/opencloudeu/opencloud
title: OpenCloud
train: community
version: 1.0.25
version: 1.0.26
38 changes: 2 additions & 36 deletions ix-dev/community/opencloud/ix_values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
images:
image:
repository: opencloudeu/opencloud-rolling
tag: 3.7.0
repository: opencloudeu/opencloud
tag: 4.0.1
container_utils_image:
repository: ixsystems/container-utils
tag: 1.0.2
Expand Down Expand Up @@ -116,37 +116,3 @@ consts:
fi
echo "Starting OpenCloud..."
opencloud server

csp_config:
# By default, deny all content sources
default-src:
- "'none'"
child-src:
- "'self'"
connect-src:
- "'self'"
- "blob:"
font-src:
- "'self'"
frame-ancestors:
- "'self'"
frame-src:
- "'self'"
- "blob:"
img-src:
- "'self'"
- "data:"
- "blob:"
manifest-src:
- "'self'"
media-src:
- "'self'"
object-src:
- "'self'"
- "blob:"
script-src:
- "'self'"
- "'unsafe-inline'"
style-src:
- "'self'"
- "'unsafe-inline'"
13 changes: 1 addition & 12 deletions ix-dev/community/opencloud/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,7 @@ questions:
Example: `'unsafe-eval'`
schema:
type: list
default:
- directive: connect-src
items:
- value: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/
- value: https://update.opencloud.eu/
- directive: frame-src
items:
- value: https://embed.diagrams.net/
- directive: img-src
items:
- value: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/
- value: https://tile.openstreetmap.org/
default: []
items:
- variable: csp_entry
label: Content Security Policy Entry
Expand Down
7 changes: 2 additions & 5 deletions ix-dev/community/opencloud/templates/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
{% set perm_container = tpl.deps.perms(values.consts.perms_container_name) %}
{% set perms_config = {"uid": values.run_as.user, "gid": values.run_as.group, "mode": "check"} %}

{% set csp = namespace(x={}) %}
{% set extra_services = namespace(x=["notifications"]) %}

{% for key, values in values.consts.csp_config.items() %}
{% do csp.x.update({key: values}) %}
{% endfor %}
{% set csp = namespace(x={}) %}
{% for x in values.opencloud.additional_csp %}
{% set list_items = x['items'] | map(attribute="value") | list %}
{% set values = csp.x.get(x.directive, []) + list_items %}
Expand Down Expand Up @@ -137,7 +134,7 @@
{% do csp.x.update({key: values | unique | list}) %}
{% endfor %}
{% set csp_yaml = tpl.funcs.to_yaml({"directives": csp.x}) %}
{% set csp_notes = "Generated CSP File:\n\n```yaml\n%s```"|format(csp_yaml) %}
{% set csp_notes = "CSP Rules that are added on top of the OpenCloud Defaults:\n\n```yaml\n%s```"|format(csp_yaml) %}
{% set body.x = "%s\n\n%s"|format(body.x, csp_notes) %}

{% do c1.configs.add("csp", csp_yaml, values.consts.csp_config_path) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,7 @@ opencloud:
arcade: true
maps: true
importer: true
additional_csp:
- directive: connect-src
items:
- value: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/
- value: https://update.opencloud.eu/
- directive: frame-src
items:
- value: https://embed.diagrams.net/
- directive: img-src
items:
- value: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/
- value: https://tile.openstreetmap.org/
additional_csp: []
additional_envs:
- name: OC_LOG_PRETTY
value: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,7 @@ opencloud:
arcade: true
maps: true
importer: true
additional_csp:
- directive: connect-src
items:
- value: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/
- value: https://update.opencloud.eu/
- directive: frame-src
items:
- value: https://embed.diagrams.net/
- directive: img-src
items:
- value: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/
- value: https://tile.openstreetmap.org/
additional_csp: []
additional_envs: []

network:
Expand Down