diff options
author | Wolfy-J <[email protected]> | 2018-06-03 21:49:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-03 21:49:57 +0300 |
commit | ed2719f7d4fc4ccde61e3a5c104a49b7e9e9ea5f (patch) | |
tree | a2a005a037cd1b1a959fc6a2323b4908d341a087 /cmd | |
parent | 7877e54547d1f8ca3b3431c6e9aa3cbd80af1403 (diff) |
error handling
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/.rr.yaml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/cmd/rr/.rr.yaml b/cmd/rr/.rr.yaml new file mode 100644 index 00000000..4cc54ae9 --- /dev/null +++ b/cmd/rr/.rr.yaml @@ -0,0 +1,60 @@ +# rpc bus allows php application and external clients to talk to rr services. +rpc: + # rpc connection DSN. Supported TCP and Unix sockets. + listen: tcp://127.0.0.1:6001 + +# http service configuration. +http: + # set to false to disable http server. + enabled: true + + # http host to listen. + host: 0.0.0.0 + + # http port. + port: 8080 + + # max POST request size, including file uploads. + maxRequest: 1G + + # static file serving. + static: + # when true rr http will be serving static files. + serve: true + + # root directory for static file (http would not serve .php and .htacess files). + root: "c:/goproj/phpapp/webroot" + + # file upload configuration. + uploads: + # directory to store uploaded files before passing to PHP, keep empty to use default system + # temp directory. + tmpDir: + + # list of file extensions which are forbidden for uploading. + forbid: [".php", ".exe", ".bat"] + + # http worker pool configuration. + pool: + # php worker command. + command: "php c:/goproj/phpapp/webroot/index.php rr pipes --no-ansi" + + # connection method (pipes, tcp://:9000, unix://socket.unix). + relay: "pipes" + + # number of active workers. + number: 1 + + # maximum jobs per worker, 0 - unlimited. + maxJobs: 0 + + # worker allocation timeouts. + timeouts: + # for how long socket based relay should await worker connection. + connect: 10 + + # for how long worker is allowed to be bootstrapped. + allocate: 60 + + # amount of time given to worker to gracefully destruct itself. + destroy: 60
\ No newline at end of file |