From 4b811b5b6d905170a54f97ef6d73036c790c3dd6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 19 May 2015 17:45:13 +0200 Subject: [PATCH] Set the list of IPs allowed for the internal API endpoints --- roles/pagure/frontend/templates/pagure.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/pagure/frontend/templates/pagure.cfg b/roles/pagure/frontend/templates/pagure.cfg index 801d2ef29e..bb68a376c2 100644 --- a/roles/pagure/frontend/templates/pagure.cfg +++ b/roles/pagure/frontend/templates/pagure.cfg @@ -50,6 +50,13 @@ GIT_URL_SSH = 'git@pagure.io' GIT_URL_GIT = 'git://pagure.io' {% endif %} +### The IP addresses allowed for the internal endpoints +{% if env == 'pagure-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'] +{% endif %} + ### Folder containing to the git repos GIT_FOLDER = '/srv/git/repositories'