From b39597b8004597e29cf56df282b9f5ba10f05434 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 12 Oct 2017 09:56:56 +0200 Subject: [PATCH] Fix the IP address allowed to hit the internal endpoint and a if check in the template Signed-off-by: Pierre-Yves Chibon --- roles/distgit/pagure/templates/pagure.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/distgit/pagure/templates/pagure.cfg b/roles/distgit/pagure/templates/pagure.cfg index 88d39ad898..958b77b7ac 100644 --- a/roles/distgit/pagure/templates/pagure.cfg +++ b/roles/distgit/pagure/templates/pagure.cfg @@ -71,10 +71,10 @@ GIT_URL_GIT = 'https://src.fedoraproject.org/' {% endif %} ### The IP addresses allowed for the internal endpoints -{% if env == 'pagure-staging' %} +{% if env == 'staging' %} IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '140.211.169.203'] {% else %} -IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '140.211.169.204'] +IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', '10.5.126.51'] {% endif %} # Redis configuration