From 602646057f6105be816a0ba7851b618d392f0a70 Mon Sep 17 00:00:00 2001 From: macbre Date: Mon, 9 Nov 2020 20:19:16 +0100 Subject: [PATCH 1/2] Use the latest macbre/nginx-brotli image for tests --- test/nginx-docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nginx-docker-compose.yaml b/test/nginx-docker-compose.yaml index 3742fa5f0..60966c435 100644 --- a/test/nginx-docker-compose.yaml +++ b/test/nginx-docker-compose.yaml @@ -3,7 +3,7 @@ version: "3.2" services: nginx: # https://hub.docker.com/r/macbre/nginx-brotli - image: macbre/nginx-brotli:1.19.3 + image: macbre/nginx-brotli:1.19.4 ports: - "8888:80" volumes: From 5089cf7771ef1a7a5b944d6bb5012d1b7d7a2221 Mon Sep 17 00:00:00 2001 From: macbre Date: Mon, 9 Nov 2020 20:22:43 +0100 Subject: [PATCH 2/2] nginx: add paths returning HTTP 401, 403 and 500 statuses --- test/nginx-static.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/nginx-static.conf b/test/nginx-static.conf index 6c0889edd..2f478fd63 100644 --- a/test/nginx-static.conf +++ b/test/nginx-static.conf @@ -30,4 +30,21 @@ server { alias /static/static/mdn.png; expires 1h; } + + # 4xx and 5xx error codes + # https://httpstatuses.com/401 + location /_401 { + return 401; + } + + # https://httpstatuses.com/403 + location /_403 { + return 403; + } + + # https://httpstatuses.com/500 + location /_500 { + return 500; + } + }