charlesportwoodii / yii2-psr7-bridge

A PSR7 Bridge and PSR-15 adapter for Yii2
BSD 3-Clause "New" or "Revised" License
110 stars 20 forks source link

roadrunner configuration files .rr.yaml according to https://github.com/yiisoft/yii-runner-roadrunner/ #18

Closed zhanchmini closed 1 year ago

zhanchmini commented 1 year ago
version: '3'

server:
  command: "php ./worker.php"
  env:
    - YII_ALIAS_WEBROOT: "./web"
    - YII_ALIAS_WEB: "./"

rpc:
  listen: tcp://127.0.0.1:6001

http:
  address: :8088
  pool:
    num_workers: 8
    # Debug mode for the pool. In this mode, pool will not pre-allocate the worker.
    # Worker (only 1, num_workers ignored) will be allocated right after the request arrived.
    debug: false
  middleware: ["static", "headers"]
  static:
    dir:   "./web"
    forbid: [".php", ".htaccess"]
  headers:
    response:
      "Cache-Control": "no-cache"

logs:
  mode: production
  level: warn
charlesportwoodii commented 1 year ago

The wiki outlines the most recent configuration: https://github.com/charlesportwoodii/yii2-psr7-bridge/wiki/RoadRunner-2.9--%7C-Yii2-Configuration-with-yii-app-basic as of April 2022.

charlesportwoodii commented 1 year ago

Separately -- I'm not involved in this other project. If you're having a problem with that repository you should open an issue with them.

That repository is for Yii3 -- this repository is for Yii2. Both frameworks are not compatible with each other.