diff options
author | Valery Piashchynski <[email protected]> | 2020-12-01 17:54:23 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-01 17:54:23 +0300 |
commit | f77ddd3109c300d0429e50bde19f86ea8c4883f8 (patch) | |
tree | df35f9205bedbfd05d16ed0eda8ab60d25c1ca69 /plugins/headers/tests/configs | |
parent | 3805b875c6498a9697c692c010bc022e8ebd50b0 (diff) |
Update CI, prepare to test Headers plugin
Diffstat (limited to 'plugins/headers/tests/configs')
-rw-r--r-- | plugins/headers/tests/configs/.rr-headers-init.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/headers/tests/configs/.rr-headers-init.yaml b/plugins/headers/tests/configs/.rr-headers-init.yaml new file mode 100644 index 00000000..cd5d4f9c --- /dev/null +++ b/plugins/headers/tests/configs/.rr-headers-init.yaml @@ -0,0 +1,41 @@ +rpc: + listen: tcp://127.0.0.1:6001 + disabled: false + +server: + command: "php ../../../tests/http/client.php echo pipes" + user: "" + group: "" + env: + "RR_HTTP": "true" + relay: "pipes" + relayTimeout: "20s" + +http: + debug: true + address: 127.0.0.1:18903 + maxRequestSize: 1024 + middleware: [ "headers" ] + uploads: + forbid: [ ".php", ".exe", ".bat" ] + trustedSubnets: [ "10.0.0.0/8", "127.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "::1/128", "fc00::/7", "fe80::/10" ] + # Additional HTTP headers and CORS control. + headers: + cors: + allowedOrigin: "*" + allowedHeaders: "*" + allowedMethods: "GET,POST,PUT,DELETE" + allowCredentials: true + exposedHeaders: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma" + maxAge: 600 + request: + "Example-Request-Header": "Value" + response: + "X-Powered-By": "RoadRunner" + pool: + numWorkers: 2 + maxJobs: 0 + allocateTimeout: 60s + destroyTimeout: 60s + + |