diff options
author | Dmitry Patsura <[email protected]> | 2019-06-20 13:10:40 +0300 |
---|---|---|
committer | Dmitry Patsura <[email protected]> | 2019-06-20 13:10:40 +0300 |
commit | 4a94c0cb578e5dca6bb43d60127121a16e7217b2 (patch) | |
tree | fe5c2fa28aff951478cb12a520228bc85b383f6a /.rr.yaml | |
parent | fddaca06c683654cb86934f38681c30188acbbf5 (diff) |
Feature: Add example of configuration for headers middleware
Diffstat (limited to '.rr.yaml')
-rw-r--r-- | .rr.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -28,6 +28,17 @@ http: # ssl private key key: server.key + # HTTP service provides built-in middlewares + middlewares: + # Middleware that adding Headers to the Request / Response + headers: + customRequestHeaders: + "Example-Request-Header": "Value" + customResponseHeaders: + "Access-Control-Allow-Origin": "*" + "Access-Control-Allow-Headers": "GET,POST,PUT,DELETE" + "X-Powered-By": "RoadRunner" + # HTTP service provides FastCGI as frontend fcgi: # FastCGI connection DSN. Supported TCP and Unix sockets. |