You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-8Lines changed: 43 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -50,20 +50,21 @@ $ make preview
50
50
51
51
## Usage
52
52
53
-
Generated error pages in our [docker image][link_docker_hub] permanently located in directory `/opt/html/%TEMPLATE_NAME%`. `nginx` in container listen for `8080` (`http`) port.
53
+
Generated error pages in our [docker image][link_docker_hub] permanently located in directory `/opt/html/%TEMPLATE_NAME%`. `nginx` in a container listen for `8080` (`http`) port.
54
54
55
55
#### Supported environment variables
56
56
57
-
Name | Description
58
-
--------------- | -----------
59
-
`TEMPLATE_NAME` | "default" pages template _(allows to use error pages without passing theme name in URL - `http://127.0.0.1/500.html` instead `http://127.0.0.1/ghost/500.html`)_
57
+
Name | Description
58
+
-------------------- | -----------
59
+
`TEMPLATE_NAME` | "default" pages template _(allows to use error pages without passing theme name in URL - `http://127.0.0.1/500.html` instead `http://127.0.0.1/ghost/500.html`)_
60
+
`DEFAULT_ERROR_CODE` | (`404` by default) Code with passed error code will be used as default (index) page (can be used only with `TEMPLATE_NAME` variable)
60
61
61
62
### HTTP server for error pages serving only
62
63
63
64
Execute in your shell:
64
65
65
66
```bash
66
-
$ docker run --rm -p "8082:8080" tarampampam/error-pages
67
+
$ docker run --rm -p "8082:8080" tarampampam/error-pages:1.1.0
67
68
```
68
69
69
70
And open in your browser `http://127.0.0.1:8082/ghost/400.html`.
0 commit comments