From 30381872df2495967f7647eec5adceda30d90b6c Mon Sep 17 00:00:00 2001 From: Aidan Fitzgerald Date: Thu, 7 Mar 2019 18:16:30 -0500 Subject: [PATCH] Redirect /gitea -> /gitea/ --- roles/gitea/templates/gitea.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/gitea/templates/gitea.conf.j2 b/roles/gitea/templates/gitea.conf.j2 index b16f7ab2b..3dc0e68e7 100644 --- a/roles/gitea/templates/gitea.conf.j2 +++ b/roles/gitea/templates/gitea.conf.j2 @@ -15,5 +15,7 @@ ProxyPassReverse {{ gitea_url}} http://localhost:{{ gitea_port }} RequestHeader unset Accept-Encoding +Redirect {{ gitea_url }} {{ gitea_url }}/ + # Disable TRACE to prevent cross-site tracing TraceEnable off