diff options
author | Wolfy-J <[email protected]> | 2019-05-04 00:16:37 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-04 00:16:37 +0300 |
commit | cd89066cb9f2772a7626b8c958568e96ae7eafb4 (patch) | |
tree | 063ec0dbf319ba0aab91f9cf4e18bdb3a2b89fbe /.rr.yaml | |
parent | 0c5f688fdaa233c626077964dfd7924b255d4462 (diff) |
minor cs
Diffstat (limited to '.rr.yaml')
-rw-r--r-- | .rr.yaml | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/.rr.yaml b/.rr.yaml new file mode 100644 index 00000000..9cdde098 --- /dev/null +++ b/.rr.yaml @@ -0,0 +1,88 @@ +# defines environment variables for all underlying php processes +env: + key: value + +# rpc bus allows php application and external clients to talk to rr services. +rpc: + # enable rpc server + enable: true + + # rpc connection DSN. Supported TCP and Unix sockets. + listen: tcp://127.0.0.1:6001 + +# http service configuration. +http: + # http host to listen. + address: 0.0.0.0:8080 + + ssl: + # custom https port (default 443) + port: 443 + + # force redirect to https connection + redirect: true + + # ssl cert + cert: server.crt + + # ssl private key + key: server.key + + # max POST request size, including file uploads in MB. + maxRequestSize: 200 + + # file upload configuration. + uploads: + # list of file extensions which are forbidden for uploading. + forbid: [".php", ".exe", ".bat"] + + # http worker pool configuration. + workers: + # php worker command. + command: "php psr-worker.php pipes" + + # connection method (pipes, tcp://:9000, unix://socket.unix). default "pipes" + relay: "pipes" + + # worker pool configuration. + pool: + # number of workers to be serving. + numWorkers: 4 + + # maximum jobs per worker, 0 - unlimited. + maxJobs: 0 + + # for how long worker is allowed to be bootstrapped. + allocateTimeout: 60 + + # amount of time given to worker to gracefully destruct itself. + destroyTimeout: 60 + +# monitors roadrunner server(s) +watch: + # check worker state each second + interval: 1 + + # custom watch configuration for each service + services: + # monitor http workers + http: + # maximum allowed memory consumption + maxMemory: 100 + + # maximum time to live for the worker + maxTTL: 0 + + # maximum allowed amount of time worker can spend in idle before being removed (for weak db connections) + maxIdleTTL: 0 + + # max_execution_time, worker will be killed if that amount of time spend for task execution + maxExecTTL: 60 + +# static file serving. remove this section to disable static file serving. +static: + # root directory for static file (http would not serve .php and .htaccess files). + dir: "public" + + # list of extensions for forbid for serving. + forbid: [".php", ".htaccess"]
\ No newline at end of file |