Skip to content

Commit

Permalink
[skip ci] Add rr config in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Mar 1, 2020
1 parent 678a256 commit c124c9e
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions docs/config/servers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,6 @@ nginX
# try to serve file directly, fallback to index.php
rewrite ^/(.*)$ /index.php?c=$1 last;
}
# optionally disable falling back to PHP script for the asset directories;
# nginx will return a 404 error when files are not found instead of passing the request
# location /bundles {
# try_files $uri =404;
# }
location = /index.php{
fastcgi_pass fastcgi_backend;
Expand Down Expand Up @@ -222,3 +216,30 @@ Workerman
"reuseport" =>true
]
);
RoadRunner
----------

**RoadRunner** configuration:

.. code-block:: yml
:caption: .ubiquity/.rr.yml
http:
address: ":8090"
workers.command: "php-cgi ./.ubiquity/rr-worker.php"
workers:
pool:
# Set numWorkers to 1 while debugging
numWorkers: 10
maxJobs: 1000
# 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: "."
# list of extensions for forbid for serving.
forbid: [".php", ".htaccess", ".yml"]
always: [".ico", ".html", ".css", ".js"]

0 comments on commit c124c9e

Please sign in to comment.