mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-10 09:02:14 +00:00
Add the ability to patch proxy config for Caddy (#1033)
* Add the ability to patch proxy config for Caddy
This commit is contained in:
parent
675719e48e
commit
3d3abeb8ef
@ -0,0 +1 @@
|
|||||||
|
[Improvement] Add ability to patch proxy configuration for Caddy (by @ravikhetani)
|
@ -52,6 +52,13 @@ File: ``apps/caddy/Caddyfile``
|
|||||||
|
|
||||||
File: ``apps/caddy/Caddyfile``
|
File: ``apps/caddy/Caddyfile``
|
||||||
|
|
||||||
|
.. patch:: caddyfile-proxy
|
||||||
|
|
||||||
|
``caddyfile-proxy``
|
||||||
|
===========================
|
||||||
|
|
||||||
|
File: ``apps/caddy/Caddyfile``
|
||||||
|
|
||||||
.. patch:: cms-env
|
.. patch:: cms-env
|
||||||
|
|
||||||
``cms-env``
|
``cms-env``
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
reverse_proxy {args.0} {
|
reverse_proxy {args.0} {
|
||||||
header_up X-Forwarded-Port {{ 443 if ENABLE_HTTPS else 80 }}
|
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} {
|
{{ LMS_HOST }}{$default_site_port}, {{ PREVIEW_LMS_HOST }}{$default_site_port} {
|
||||||
|
Loading…
Reference in New Issue
Block a user