Add the ability to patch proxy config for Caddy (#1033)

* Add the ability to patch proxy config for Caddy
This commit is contained in:
ravikhetani 2024-04-25 12:24:20 +01:00 committed by GitHub
parent 675719e48e
commit 3d3abeb8ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
[Improvement] Add ability to patch proxy configuration for Caddy (by @ravikhetani)

View File

@ -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``

View File

@ -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} {