From 32ced1bdb56d725e0de4ebb0072c089e4f1b01ff Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Tue, 13 Feb 2018 15:17:39 +0100 Subject: [PATCH 1/2] cpanfile: update Test::APIcast to 0.07 This version allows us to set TEST_NGINX_MANAGEMENT_SERVER so we can test the management API using Test::APIcast::Blackbox. --- gateway/cpanfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/cpanfile b/gateway/cpanfile index b0f292bbf..8f37251af 100644 --- a/gateway/cpanfile +++ b/gateway/cpanfile @@ -1,2 +1,2 @@ -requires 'Test::APIcast', '0.06'; +requires 'Test::APIcast', '0.07'; requires 'Crypt::JWT'; From 82dc4d6cd657a29ca2dc655d05c0987dcd6ccda8 Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Tue, 13 Feb 2018 15:30:52 +0100 Subject: [PATCH 2/2] conf/nginx.conf.liquid: make management server name configurable --- gateway/conf/nginx.conf.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/conf/nginx.conf.liquid b/gateway/conf/nginx.conf.liquid index fff6aa9e6..4b031b8c0 100644 --- a/gateway/conf/nginx.conf.liquid +++ b/gateway/conf/nginx.conf.liquid @@ -62,7 +62,7 @@ http { server { listen {{ port.management | default: 8090 }}; - server_name management _; + server_name {{ server_name.management | default: 'management _' }}; {% include "conf.d/management.conf" %} }