summaryrefslogtreecommitdiff
path: root/cmd/rr
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 22:48:33 +0300
committerWolfy-J <[email protected]>2018-06-13 22:48:33 +0300
commit474e81c4c7b4762c93740ce1c426afe54c807793 (patch)
tree0786b137e2ad2bfaff8f28f4b392bf579e221ce3 /cmd/rr
parent06486ad04789d5b86ef1fd5e471487665c95dcbc (diff)
sample rr config
Diffstat (limited to 'cmd/rr')
-rw-r--r--cmd/rr/.rr.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/cmd/rr/.rr.yaml b/cmd/rr/.rr.yaml
new file mode 100644
index 00000000..ab0f3e7f
--- /dev/null
+++ b/cmd/rr/.rr.yaml
@@ -0,0 +1,56 @@
+# 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:
+ # set to false to disable http server.
+ enable: true
+
+ # http host to listen.
+ address: 0.0.0.0:8080
+
+ # max POST request size, including file uploads in MB.
+ maxRequest: 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).
+ 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. In nanoseconds :(
+ allocateTimeout: 600000000
+
+ # amount of time given to worker to gracefully destruct itself. In nanoseconds :(
+ destroyTimeout: 600000000
+
+# static file serving.
+static:
+ # serve http static files
+ enable: false
+
+ # 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