diff options
Diffstat (limited to 'infra/Caddyfile.local')
| -rw-r--r-- | infra/Caddyfile.local | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/infra/Caddyfile.local b/infra/Caddyfile.local index 4d3bf11..94114f9 100644 --- a/infra/Caddyfile.local +++ b/infra/Caddyfile.local @@ -14,17 +14,19 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. :80 { + redir /message {{CHAT_PUBLIC_ORIGIN}}/ permanent + redir /message/ {{CHAT_PUBLIC_ORIGIN}}/ permanent redir /git /git/?{query} permanent redir /search /search/?{query} permanent @git path /git /git/* /cgit.js /cgit.png handle @git { uri strip_prefix /git - reverse_proxy cgit:8080 + reverse_proxy {{CGIT_UPSTREAM}} } @search path /search /search/* handle @search { - reverse_proxy searxng:8080 { + reverse_proxy {{SEARXNG_UPSTREAM}} { header_up X-Script-Name /search } } @@ -34,3 +36,7 @@ file_server } } + +http://{{CHAT_LOCAL_HOST}}:80 { + reverse_proxy {{CHAT_UPSTREAM}} +} |
