diff options
| author | 2023-10-22 17:49:03 +0200 | |
|---|---|---|
| committer | 2023-10-22 17:49:03 +0200 | |
| commit | 71225fc271ddfd140d1c85172247c27e608052e1 (patch) | |
| tree | 73d7ca8077b0f5becdabceafe84aa605957028ab | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-71225fc271ddfd140d1c85172247c27e608052e1.tar.gz snac2-71225fc271ddfd140d1c85172247c27e608052e1.tar.xz snac2-71225fc271ddfd140d1c85172247c27e608052e1.zip | |
Updated documentation.
| -rw-r--r-- | doc/snac.8 | 29 |
1 files changed, 22 insertions, 7 deletions
| @@ -395,15 +395,30 @@ credentials defined for this user. Search people, start following | |||
| 395 | them, engage in arid discussions and generally enjoy the frustrating | 395 | them, engage in arid discussions and generally enjoy the frustrating |
| 396 | experience of Social Media. | 396 | experience of Social Media. |
| 397 | .Pp | 397 | .Pp |
| 398 | The following example configures OpenBSD's httpd as a frontend using the | 398 | Since version 2.43, |
| 399 | FastCGI interface. There is no need to use relayd, as httpd includes | ||
| 400 | native FastCGI support (please take note that you must reconfigure | ||
| 401 | .Nm | 399 | .Nm |
| 402 | by setting the fastcgi value to true in the | 400 | supports communicating from / to the front end http server using the FastCGI |
| 403 | .Pa server.json | 401 | protocol. There is no special advantage in using this, only that some servers |
| 404 | configuration file). Add the following to the example.com server section in | 402 | allow for simpler configuration. For example, in the case of nginx, you can |
| 405 | .Pa /etc/httpd.conf : | 403 | replace the two 'proxy_pass' and 'proxy_set_header' lines in the example |
| 404 | above with just | ||
| 406 | .Bd -literal -offset indent | 405 | .Bd -literal -offset indent |
| 406 | fastcgi_pass localhost:8001; | ||
| 407 | .Ed | ||
| 408 | .Pp | ||
| 409 | The only thing to change on | ||
| 410 | .Nm | ||
| 411 | size is to the set 'fastcgi' value to true in | ||
| 412 | .Pa server.json . | ||
| 413 | .Pp | ||
| 414 | Further, using the FastCGI interface allows a much simpler configuration | ||
| 415 | under OpenBSD's native httpd, given that it's natively implemented there | ||
| 416 | and you no longer need to configure the complicated relayd server. This is | ||
| 417 | an example: | ||
| 418 | .Bd -literal -offset indent | ||
| 419 | # other server configuration | ||
| 420 | [...] | ||
| 421 | |||
| 407 | location "/fedi*" { | 422 | location "/fedi*" { |
| 408 | fastcgi socket tcp "127.0.0.1" 8001 | 423 | fastcgi socket tcp "127.0.0.1" 8001 |
| 409 | } | 424 | } |