Skip to content

Commit

Permalink
docs: Upgrade documentation for new configuration fields
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Jan 19, 2021
1 parent de9cf6e commit 8fced7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions conf/config-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ targets:
# GET:
# # Will allow GET requests
# enabled: true
# # Redirect with trailing slash when a file isn't found
# redirectWithTrailingSlashForNotFoundFile: true
# # Action for PUT requests on target
# PUT:
# # Will allow PUT requests
Expand Down
9 changes: 6 additions & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ This feature is powered by [go-chi/cors](https://github.com/go-chi/cors). You ca

## GetActionConfiguration

| Key | Type | Required | Default | Description |
| ------- | ------- | -------- | ------- | ----------------------- |
| enabled | Boolean | No | `false` | Will allow GET requests |
| Key | Type | Required | Default | Description |
| ---------------------------------------- | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
| enabled | Boolean | No | `false` | Will allow GET requests |
| redirectWithTrailingSlashForNotFoundFile | Boolean | No | `false` | This option allow to do a redirect with a trailing slash when a GET request on a file (not a folder) encountered a 404 not found. |

## PutActionConfiguration

Expand Down Expand Up @@ -420,6 +421,8 @@ targets:
# GET:
# # Will allow GET requests
# enabled: true
# # Redirect with trailing slash when a file isn't found
# redirectWithTrailingSlashForNotFoundFile: true
# # Action for PUT requests on target
# PUT:
# # Will allow PUT requests
Expand Down

0 comments on commit 8fced7c

Please # to comment.