Fix the IP address allowed to hit the internal endpoint and a if check in the template

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2017-10-12 09:56:56 +02:00
parent 25794d3999
commit b39597b800

View file

@ -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