summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
authorDmitry Patsura <[email protected]>2019-06-20 13:10:40 +0300
committerDmitry Patsura <[email protected]>2019-06-20 13:10:40 +0300
commit4a94c0cb578e5dca6bb43d60127121a16e7217b2 (patch)
treefe5c2fa28aff951478cb12a520228bc85b383f6a /.rr.yaml
parentfddaca06c683654cb86934f38681c30188acbbf5 (diff)
Feature: Add example of configuration for headers middleware
Diffstat (limited to '.rr.yaml')
-rw-r--r--.rr.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 198f777b..c04daaff 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -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.