diff options
author | Valery Piashchynski <[email protected]> | 2021-06-03 19:39:37 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-03 19:39:37 +0300 |
commit | 3b06949c7e9a1fc5b2aec7529a97320a6f398535 (patch) | |
tree | 606fc636933e686762354aadde7ee171aa861094 /tests/plugins/http/configs | |
parent | 9c01e7ab1548e1416598b702d63866fa6dc5707b (diff) |
- Use fcgi in the applyMiddlewares for the fcgi, not https
- Add tests
Diffstat (limited to 'tests/plugins/http/configs')
-rw-r--r-- | tests/plugins/http/configs/.rr-fcgi-reqUri.yaml | 8 | ||||
-rw-r--r-- | tests/plugins/http/configs/.rr-fcgi.yaml | 18 | ||||
-rw-r--r-- | tests/plugins/http/configs/.rr-http-static.yaml | 4 |
3 files changed, 8 insertions, 22 deletions
diff --git a/tests/plugins/http/configs/.rr-fcgi-reqUri.yaml b/tests/plugins/http/configs/.rr-fcgi-reqUri.yaml index 28c70c6f..cbdd211e 100644 --- a/tests/plugins/http/configs/.rr-fcgi-reqUri.yaml +++ b/tests/plugins/http/configs/.rr-fcgi-reqUri.yaml @@ -1,16 +1,12 @@ server: command: "php ../../http/client.php request-uri pipes" - user: "" - group: "" - env: - "RR_HTTP": "true" relay: "pipes" relay_timeout: "20s" http: address: :8082 max_request_size: 1024 - middleware: [ "" ] + middleware: [ ] uploads: forbid: [ ".php", ".exe", ".bat" ] trusted_subnets: [ "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" ] @@ -33,4 +29,4 @@ http: maxConcurrentStreams: 128 logs: mode: development - level: error
\ No newline at end of file + level: error diff --git a/tests/plugins/http/configs/.rr-fcgi.yaml b/tests/plugins/http/configs/.rr-fcgi.yaml index c749e42b..b0060d85 100644 --- a/tests/plugins/http/configs/.rr-fcgi.yaml +++ b/tests/plugins/http/configs/.rr-fcgi.yaml @@ -1,16 +1,16 @@ server: command: "php ../../http/client.php echo pipes" - user: "" - group: "" - env: - "RR_HTTP": "true" relay: "pipes" relay_timeout: "20s" http: address: :8081 max_request_size: 1024 - middleware: [ "" ] + middleware: [ "gzip" ] + static: + dir: "../../../tests" + forbid: [ "" ] + allow: [ ".txt", ".php" ] uploads: forbid: [ ".php", ".exe", ".bat" ] trusted_subnets: [ "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" ] @@ -20,12 +20,6 @@ http: allocate_timeout: 60s destroy_timeout: 60s - ssl: - address: :8889 - redirect: false - cert: fixtures/server.crt - key: fixtures/server.key - # root_ca: root.crt fcgi: address: tcp://0.0.0.0:6920 http2: @@ -33,4 +27,4 @@ http: maxConcurrentStreams: 128 logs: mode: development - level: error
\ No newline at end of file + level: error diff --git a/tests/plugins/http/configs/.rr-http-static.yaml b/tests/plugins/http/configs/.rr-http-static.yaml index e2e3af2a..30bb5b1e 100644 --- a/tests/plugins/http/configs/.rr-http-static.yaml +++ b/tests/plugins/http/configs/.rr-http-static.yaml @@ -1,9 +1,5 @@ server: command: "php ../../http/client.php pid pipes" - user: "" - group: "" - env: - "RR_HTTP": "true" relay: "pipes" relay_timeout: "20s" |