Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
update .rr.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Jan 11, 2022
1 parent cde93b7 commit 33697bb
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .rr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ http:
# Default: 0
max_request_size: 256

# Middlewares for the http plugin, order is important. Allowed values is: "headers", "gzip", "static", "websockets", "sendfile", [SINCE 2.6] -> "new_relic", [SINCE 2.6] -> "http_metrics"
# Middlewares for the http plugin, order is important. Allowed values is: "headers", "gzip", "static", "websockets", "sendfile", [SINCE 2.6] -> "new_relic", [SINCE 2.6] -> "http_metrics", [SINCE 2.7] -> "cache"
#
# Default value: []
middleware: [ "headers", "gzip" ]
Expand Down Expand Up @@ -473,6 +473,24 @@ http:
# Error if empty. NEW_RELIC_LICENSE_KEY env variable should be set if the license_key key is empty. If both empty - error.
license_key: "key"

# RFC 7234 (partially) RR Cache middleware
cache:
# Cache driver
#
# Default: memory. Available drivers: memory
driver: memory

# Methods to cache
#
# According to the RFC, we can cache only GET, HEAD or POST requests. Currently, only GET method supported.
cache_methods: ["GET", "HEAD", "POST"]

# Configuration for the driver
#
# Empty for the memory
config: {}


# File uploading settings.
uploads:
# Directory for file uploads. Empty value means to use $TEMP based on your OS.
Expand Down

0 comments on commit 33697bb

Please sign in to comment.