diff options
Diffstat (limited to 'infra')
| -rw-r--r-- | infra/Caddyfile | 2 | ||||
| -rw-r--r-- | infra/Caddyfile.local | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/infra/Caddyfile b/infra/Caddyfile index 7975f68..140101d 100644 --- a/infra/Caddyfile +++ b/infra/Caddyfile @@ -42,6 +42,8 @@ https://www.{{BASE_DOMAIN}}:{{HTTPS_PORT}} { https://{{SITE_HOST}}:{{HTTPS_PORT}} { import https_security + redir /message {{CHAT_PUBLIC_ORIGIN}}/ permanent + redir /message/ {{CHAT_PUBLIC_ORIGIN}}/ permanent root * /srv file_server diff --git a/infra/Caddyfile.local b/infra/Caddyfile.local index 6f81a0a..94114f9 100644 --- a/infra/Caddyfile.local +++ b/infra/Caddyfile.local @@ -14,6 +14,8 @@ # 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 |
