diff options
| -rw-r--r-- | doc/snac.8 | 40 |
1 files changed, 40 insertions, 0 deletions
| @@ -363,6 +363,8 @@ snac httpd /home/snacusr/fedidata | |||
| 363 | Edit the nginx configuration and add the following snippet to the | 363 | Edit the nginx configuration and add the following snippet to the |
| 364 | example.com server section: | 364 | example.com server section: |
| 365 | .Bd -literal -offset indent | 365 | .Bd -literal -offset indent |
| 366 | # nginx configuration example | ||
| 367 | |||
| 366 | # main web access point | 368 | # main web access point |
| 367 | location /fedi { | 369 | location /fedi { |
| 368 | proxy_pass http://localhost:8001; | 370 | proxy_pass http://localhost:8001; |
| @@ -401,6 +403,42 @@ credentials defined for this user. Search people, start following | |||
| 401 | them, engage in arid discussions and generally enjoy the frustrating | 403 | them, engage in arid discussions and generally enjoy the frustrating |
| 402 | experience of Social Media. | 404 | experience of Social Media. |
| 403 | .Pp | 405 | .Pp |
| 406 | This is an example of a similar configuration for the Apache2 web server: | ||
| 407 | .Bd -literal -offset indent | ||
| 408 | # apache2 configuration example | ||
| 409 | |||
| 410 | ProxyPreserveHost On | ||
| 411 | |||
| 412 | # Main web access point | ||
| 413 | <Location /social> | ||
| 414 | ProxyPass http://127.0.0.1:8001/social | ||
| 415 | </Location> | ||
| 416 | |||
| 417 | # WebFinger | ||
| 418 | <Location /.well-known/webfinger> | ||
| 419 | ProxyPass http://127.0.0.1:8001/.well-known/webfinger | ||
| 420 | </Location> | ||
| 421 | |||
| 422 | # NodeInfo (optional) | ||
| 423 | <Location /.well-known/nodeinfo> | ||
| 424 | ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo | ||
| 425 | </Location> | ||
| 426 | |||
| 427 | # Mastodon API (entry points) | ||
| 428 | <Location /api/v1/> | ||
| 429 | ProxyPass http://127.0.0.1:8001/api/v1/ | ||
| 430 | </Location> | ||
| 431 | |||
| 432 | <Location /api/v2/> | ||
| 433 | ProxyPass http://127.0.0.1:8001/api/v2/ | ||
| 434 | </Location> | ||
| 435 | |||
| 436 | # Mastodon API (OAuth support) | ||
| 437 | <Location /oauth> | ||
| 438 | ProxyPass http://127.0.0.1:8001/oauth | ||
| 439 | </Location> | ||
| 440 | .Ed | ||
| 441 | .Pp | ||
| 404 | Since version 2.43, | 442 | Since version 2.43, |
| 405 | .Nm | 443 | .Nm |
| 406 | supports communicating from / to the front end http server using the FastCGI | 444 | supports communicating from / to the front end http server using the FastCGI |
| @@ -422,6 +460,8 @@ under OpenBSD's native httpd, given that it's natively implemented there | |||
| 422 | and you no longer need to configure the complicated relayd server. This is | 460 | and you no longer need to configure the complicated relayd server. This is |
| 423 | an example: | 461 | an example: |
| 424 | .Bd -literal -offset indent | 462 | .Bd -literal -offset indent |
| 463 | # OpenBSD httpd configuration example | ||
| 464 | |||
| 425 | # other server configuration | 465 | # other server configuration |
| 426 | [...] | 466 | [...] |
| 427 | 467 | ||