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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Kubeconform Validation
name: Validate configuration files

on:
pull_request:
Expand Down Expand Up @@ -65,6 +65,13 @@ jobs:
--isolated \
tutor config save

- name: Validate generated Caddyfile
run: |
docker run --rm \
-v "$TUTOR_ROOT/env/apps/caddy/Caddyfile:/etc/caddy/Caddyfile:ro" \
caddy:2 \
caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile

- name: Print versions
run: |
echo "Kubectl version installed:"
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ See the fragment files in the [changelog.d/ directory](./changelog.d).

<!-- scriv-insert-here -->

<a id='changelog-21.2.2'></a>
## 21.2.2 — 2026-06-02

### Fixed

- Removed repeated definition of the `@scorm_matcher` rule that would cause
crashes in caddy when using `DRYDOCK_ENABLE_SCORM` and
`DRYDOCK_ENABLE_MULTITENANCY`.

<a id='changelog-21.2.1'></a>
## 21.2.1 — 2026-05-28

Expand Down
28 changes: 2 additions & 26 deletions drydock/patches/caddyfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if DRYDOCK_ENABLE_MULTITENANCY -%}
{$default_site_port} {
{% if DRYDOCK_ENABLE_MULTITENANCY %}
{$default_site_port:80} {
@favicon_matcher {
path_regexp ^/favicon.ico$
}
Expand All @@ -21,29 +21,5 @@
max_size 4MB
}
}

{% if DRYDOCK_ENABLE_SCORM and MINIO_HOST is defined %}
@scorm_matcher {
path /scorm-proxy/*
}
route @scorm_matcher {
uri /scorm-proxy/* strip_prefix /scorm-proxy
reverse_proxy minio:9000 {
header_up Host {{ MINIO_HOST }}
}
}
{% elif DRYDOCK_ENABLE_SCORM and S3_STORAGE_BUCKET is defined %}
@scorm_matcher {
path /scorm-proxy/*
}
route @scorm_matcher {
uri /scorm-proxy/* strip_prefix /scorm-proxy
reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }} {
header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}
}
}
{% endif %}

}

{% endif %}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tutor-contrib-drydock"
version = "21.2.1"
version = "21.2.2"
description = "A Tutor plugin to manage our opinionated Open edX operations"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.