From acd007a79d5d339439ff3c55e0d7ec95d7051cce Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 12 Oct 2018 11:42:35 +0200 Subject: [PATCH] Set an anonymous http user for pagure.io gitolite Signed-off-by: Patrick Uiterwijk --- roles/pagure/frontend/templates/gitolite.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/pagure/frontend/templates/gitolite.rc b/roles/pagure/frontend/templates/gitolite.rc index 3746f96adc..389d04545e 100644 --- a/roles/pagure/frontend/templates/gitolite.rc +++ b/roles/pagure/frontend/templates/gitolite.rc @@ -15,7 +15,9 @@ %RC = ( # ------------------------------------------------------------------ - +{%- if environment == "staging" %} + HTTP_ANON_USER => 'ANONYMOUS_', +{% endif %} # default umask gives you perms of '0700'; see the rc file docs for # how/why you might change this UMASK => 0077,