summaryrefslogtreecommitdiff
path: root/cmd/rr/.rr.yaml
blob: cb84af54bef3ec21d760f81b2a591706e7b9755f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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. (default: 1GB)
  maxRequest: 1073741824

  # 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 c:/GoProj/phpapp/webroot/index.php rr pipes --no-ansi"

    # connection method (pipes, tcp://:9000, unix://socket.unix).
    relay:    "pipes"

    # worker pool configuration.
    pool:
      # number of workers to be serving.
      numWorkers: 1

      # maximum jobs per worker, 0 - unlimited.
      maxJobs:  0

      # for how long worker is allowed to be bootstrapped.
      allocateTimeout: 600000000

      # amount of time given to worker to gracefully destruct itself.
      destroyTimeout:  600000000

# static file serving.
static:
  # serve http static files
  enable:  true

  # root directory for static file (http would not serve .php and .htaccess files).
  dir:   "c:/GoProj/phpapp/webroot"

  # list of extensions for forbid for serving.
  forbid: [".php", ".htaccess"]

# rr debugging
debug:
  # enable debug output
  enable:  true

  # show individual worker events
  verbose: true