diff options
author | Valery Piashchynski <[email protected]> | 2021-06-14 17:00:06 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-14 17:00:06 +0300 |
commit | 9748651763415c417eaa339920cba031d418fda6 (patch) | |
tree | ee860c0e959c34cd9092923acf503a2017b4713e /tests/plugins/websockets/configs | |
parent | 75ab1e16c64cfd0a6424fe4c546fdbc5e1b992dd (diff) |
- Add more tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/websockets/configs')
-rw-r--r-- | tests/plugins/websockets/configs/.rr-websockets-redis-memory-local.yaml | 38 | ||||
-rw-r--r-- | tests/plugins/websockets/configs/.rr-websockets-redis-no-section.yaml | 34 |
2 files changed, 72 insertions, 0 deletions
diff --git a/tests/plugins/websockets/configs/.rr-websockets-redis-memory-local.yaml b/tests/plugins/websockets/configs/.rr-websockets-redis-memory-local.yaml new file mode 100644 index 00000000..27eab557 --- /dev/null +++ b/tests/plugins/websockets/configs/.rr-websockets-redis-memory-local.yaml @@ -0,0 +1,38 @@ +rpc: + listen: tcp://127.0.0.1:6001 + +server: + command: "php ../../psr-worker-bench.php" + user: "" + group: "" + relay: "pipes" + relay_timeout: "20s" + +http: + address: 127.0.0.1:13235 + max_request_size: 1024 + middleware: [ "websockets" ] + 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" ] + pool: + num_workers: 2 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s + + +websockets: + pubsubs: [ "redis", "memory" ] + redis: + addrs: + - "localhost:6379" + + path: "/ws" + +logs: + mode: development + level: error + +endure: + grace_period: 120s + print_graph: false + log_level: error diff --git a/tests/plugins/websockets/configs/.rr-websockets-redis-no-section.yaml b/tests/plugins/websockets/configs/.rr-websockets-redis-no-section.yaml new file mode 100644 index 00000000..fd125794 --- /dev/null +++ b/tests/plugins/websockets/configs/.rr-websockets-redis-no-section.yaml @@ -0,0 +1,34 @@ +rpc: + listen: tcp://127.0.0.1:6001 + +server: + command: "php ../../psr-worker-bench.php" + user: "" + group: "" + relay: "pipes" + relay_timeout: "20s" + +http: + address: 127.0.0.1:13235 + max_request_size: 1024 + middleware: [ "websockets" ] + 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" ] + pool: + num_workers: 2 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s + + +websockets: + pubsubs: [ "redis", "memory" ] + path: "/ws" + +logs: + mode: development + level: error + +endure: + grace_period: 120s + print_graph: false + log_level: error |