Skip to content

Commit

Permalink
Add the ability to patch proxy config for Caddy (#1033)
Browse files Browse the repository at this point in the history
* Add the ability to patch proxy config for Caddy
  • Loading branch information
ravikhetani committed Apr 25, 2024
1 parent 675719e commit 3d3abeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Improvement] Add ability to patch proxy configuration for Caddy (by @ravikhetani)
7 changes: 7 additions & 0 deletions docs/reference/patches.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ File: ``apps/caddy/Caddyfile``

File: ``apps/caddy/Caddyfile``

.. patch:: caddyfile-proxy

``caddyfile-proxy``
===========================

File: ``apps/caddy/Caddyfile``

.. patch:: cms-env

``cms-env``
Expand Down
2 changes: 2 additions & 0 deletions tutor/templates/apps/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
reverse_proxy {args.0} {
header_up X-Forwarded-Port {{ 443 if ENABLE_HTTPS else 80 }}
}

{{ patch("caddyfile-proxy")|indent(4) }}
}

{{ LMS_HOST }}{$default_site_port}, {{ PREVIEW_LMS_HOST }}{$default_site_port} {
Expand Down

0 comments on commit 3d3abeb

Please sign in to comment.