Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
magajh committed Sep 13, 2024
1 parent 2a29d79 commit 78f9687
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ jobs:
- name: Configure Tutor plugin
run: |
tutor plugins create patches <<EOF
name: patches
patches:
caddyfile: |
{$default_site_port} {
tutor config save
echo 'Patching Caddyfile...'
echo "
{$default_site_port} {
@favicon_matcher {
path_regexp ^/favicon.ico$
}
rewrite @favicon_matcher /theming/asset/images/favicon.ico
{{ patch("caddyfile-mfe-by-path") }}
{{ patch('caddyfile-mfe-by-path') }}
# Limit profile image upload size
request_body /api/profile_images/*/*/upload {
Expand All @@ -36,16 +35,15 @@ jobs:
request_body {
max_size 4MB
}
import proxy "lms:8000"
}
import proxy 'lms:8000'
}
" > $(tutor config printroot)/env/apps/caddy/Caddyfile
openedx-cms-production-settings: |
ALLOWED_HOSTS = ["*"]
echo 'Patching CMS production settings...'
echo "ALLOWED_HOSTS = ['*']" > $(tutor config printroot)/env/apps/openedx/settings/cms/production.py
openedx-lms-production-settings: |
ALLOWED_HOSTS = ["*"]
EOF
tutor plugins enable patches
echo 'Patching LMS production settings...'
echo "ALLOWED_HOSTS = ['*']" > $(tutor config printroot)/env/apps/openedx/settings/lms/production.py
- name: Launch Tutor
run: |
Expand Down

0 comments on commit 78f9687

Please sign in to comment.