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