docs: update the documentation for OrangeCircle and GreenRhombus
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m8s
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m8s
This commit is contained in:
parent
9a0513fd8f
commit
d767b70448
2 changed files with 54 additions and 2 deletions
|
@ -58,7 +58,26 @@ OrangeCircle can be configured in _orangecircle-config.json_ file in SVR.JS inst
|
|||
}
|
||||
```
|
||||
|
||||
OrangeCircle 1.0.7 and newer work with web root outside SVR.JS installation directory (older ones need _config.json_ file in web root with valid JSON data; not necessarily related to _config.json_ in SVR.JS installation directory)
|
||||
OrangeCircle 1.0.7 and newer work with web root outside SVR.JS installation directory (older ones need _config.json_ file in web root with valid JSON data; not necessarily related to _config.json_ in SVR.JS installation directory).
|
||||
|
||||
OrangeCircle 1.3.0 and newer support multiple SCGI servers. These versions of OrangeCircle can be configured to use multiple SCGI servers like this:
|
||||
|
||||
```json
|
||||
{
|
||||
"multiConfig": {
|
||||
"example.com": {
|
||||
"path": "/scgi",
|
||||
"host": "localhost",
|
||||
"port": 4000
|
||||
},
|
||||
"example.org": {
|
||||
"path": "/scgiorg",
|
||||
"host": "localhost",
|
||||
"port": 4001
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## JSGI via YellowSquare
|
||||
|
||||
|
|
|
@ -35,6 +35,25 @@ You can configure file extensions outside of path specified in _greenrhombus-con
|
|||
[".php"]
|
||||
```
|
||||
|
||||
GreenRhombus 1.1.0 and newer support multiple FastCGI servers. These versions of GreenRhombus can be configured to use multiple FastCGI servers like this:
|
||||
|
||||
```json
|
||||
{
|
||||
"multiConfig": {
|
||||
"example.com": {
|
||||
"path": "/fastcgi",
|
||||
"host": "localhost",
|
||||
"port": 7000
|
||||
},
|
||||
"example.org": {
|
||||
"path": "/fastcgiorg",
|
||||
"host": "localhost",
|
||||
"port": 7001
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## PHP-FPM
|
||||
|
||||
GreenRhombus supports running PHP files through PHP-FPM. If you want to use GreenRhombus only for PHP-FPM, configure _greenrhombus-config.json_ like this (in this case we're using socket in `/run/php/php8.2-fpm.sock`; you can check it in PHP-FPM configuration file, e.g. `/etc/php/8.2/fpm/pool.d/www.conf`; configure it without _path_ property):
|
||||
|
@ -51,6 +70,20 @@ And configure _greenrhombus-scriptexts.json_ like this:
|
|||
[".php"]
|
||||
```
|
||||
|
||||
If using GreenRhombus 1.1.0 or newer, you can configure GreenRhombus to connect to multiple PHP-FPM instances like this:
|
||||
```json
|
||||
{
|
||||
"multiConfig": {
|
||||
"example.com": {
|
||||
"socketPath": "/run/php/php8.2-fpm.sock"
|
||||
},
|
||||
"example.org": {
|
||||
"socketPath": "/run/php/php7.4-fpm.sock"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
PHP-FPM may run on different user than SVR.JS web server, so you may need to set permissions for the user, which PHP-FPM runs on.
|
||||
|
||||
If you are using PHP-FPM only for SVR.JS, you can set the _listen.owner_ and _listen.group_ properties to _svrjs_ in the PHP-FPM configuration file (e.g. `/etc/php/8.2/fpm/pool.d/www.conf`).
|
||||
If you are using PHP-FPM only for SVR.JS, you can set the _listen.owner_ and _listen.group_ properties to _svrjs_ in the PHP-FPM configuration file (e.g. `/etc/php/8.2/fpm/pool.d/www.conf`).
|
Loading…
Reference in a new issue