From 35e22df96cdf631caa9b3b6257030f4c585c7a38 Mon Sep 17 00:00:00 2001 From: Pavel Sapachev Date: Mon, 6 Mar 2023 23:08:50 +0300 Subject: [PATCH] fix: correct http status on each error response (#21) * fix: correct http status on each error response * 1.8.5 --- README.md | 3 ++- package-lock.json | 4 ++-- package.json | 2 +- snippets/nginx-error-pages.conf | 8 +++++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4160e8e..080686c 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,8 @@ In addition to steps from Basic Usage, you can improve results by changing some The main configuration is stored in the `config.json` file in a root directory and you can change this config file according to your needs: -```{ +``` +{ "tailwind": true, "theme": "minimalistic", "locale": "en" diff --git a/package-lock.json b/package-lock.json index 68e8969..c17696e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "error-pages", - "version": "1.8.4", + "version": "1.8.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "error-pages", - "version": "1.8.4", + "version": "1.8.5", "license": "ISC", "dependencies": { "@types/mustache": "^4.2.2", diff --git a/package.json b/package.json index e008240..8860fab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "error-pages", - "version": "1.8.4", + "version": "1.8.5", "description": "Lightweight tool to create static HTTP Error Pages in minimalistic adaptive and accessible design with customization and localization support", "main": "index.ts", "scripts": { diff --git a/snippets/nginx-error-pages.conf b/snippets/nginx-error-pages.conf index 4da95a8..22bcac3 100644 --- a/snippets/nginx-error-pages.conf +++ b/snippets/nginx-error-pages.conf @@ -1,7 +1,13 @@ {{#codes}} -error_page {{.}} = @error{{.}}; +error_page {{.}} ={{.}} @error{{.}}; {{/codes}} +location ^~ /@assets { + root /usr/share/nginx/html/error-pages; + allow all; + auth_basic off; +} + {{#codes}} location @error{{.}} { root /usr/share/nginx/html/error-pages;