Skip to content

Commit

Permalink
fix: correct http status on each error response (#21)
Browse files Browse the repository at this point in the history
* fix: correct http status on each error response

* 1.8.5
  • Loading branch information
sapachev authored Mar 6, 2023
1 parent 4222398 commit 35e22df
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 7 additions & 1 deletion snippets/nginx-error-pages.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 35e22df

Please sign in to comment.