From 9307c1d6ffa5a8ad743c7893b7c12d6b23c15266 Mon Sep 17 00:00:00 2001
From: moson <moson@archlinux.org>
Date: Sat, 21 Oct 2023 12:22:27 +0200
Subject: [PATCH] aurweb: Enable traceback for sandbox environments

Enable error reporting for internal server errors and show stack trace
on a sandbox/dev environment.

Signed-off-by: moson <moson@archlinux.org>
---
 roles/aurweb/templates/config.j2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/roles/aurweb/templates/config.j2 b/roles/aurweb/templates/config.j2
index 06456f86f..427f8c069 100644
--- a/roles/aurweb/templates/config.j2
+++ b/roles/aurweb/templates/config.j2
@@ -18,6 +18,10 @@ aur_location = https://{{ aurweb_domain }}
 git_clone_uri_anon = https://{{ aurweb_domain }}/%s.git
 git_clone_uri_priv = ssh://{{ aurweb_user }}@{{ aurweb_domain }}/%s.git
 redis_address = redis://localhost
+{% if aurweb_environment_type == "dev" %}
+; Toggles traceback display in templates/errors/500.html.
+traceback = 1
+{% endif %}
 
 [ratelimit]
 request_limit = {{ aurweb_request_limt }}
-- 
GitLab