diff --git a/conf/config-example.yaml b/conf/config-example.yaml index 18e1d0c7..7b52a906 100644 --- a/conf/config-example.yaml +++ b/conf/config-example.yaml @@ -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 diff --git a/docs/configuration.md b/docs/configuration.md index d72b782a..1c0397ad 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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 @@ -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