diff options
| author | 2023-04-12 11:54:42 +0200 | |
|---|---|---|
| committer | 2023-04-12 11:54:42 +0200 | |
| commit | 7fecec134f878964e02cc156e04855ba5cfe9708 (patch) | |
| tree | 46fbb0f4c8cc998e48889a7f6ec7e8cdbf9da63d /doc/snac.8 | |
| parent | Updated README. (diff) | |
| download | snac2-7fecec134f878964e02cc156e04855ba5cfe9708.tar.gz snac2-7fecec134f878964e02cc156e04855ba5cfe9708.tar.xz snac2-7fecec134f878964e02cc156e04855ba5cfe9708.zip | |
Updated documentation.
Diffstat (limited to 'doc/snac.8')
| -rw-r--r-- | doc/snac.8 | 21 |
1 files changed, 16 insertions, 5 deletions
| @@ -331,21 +331,32 @@ snac httpd /home/snacusr/fedidata | |||
| 331 | Edit the nginx configuration and add the following snippet to the | 331 | Edit the nginx configuration and add the following snippet to the |
| 332 | example.com server section: | 332 | example.com server section: |
| 333 | .Bd -literal -offset indent | 333 | .Bd -literal -offset indent |
| 334 | # main web access point | ||
| 335 | location /fedi { | ||
| 336 | proxy_pass http://localhost:8001; | ||
| 337 | proxy_set_header Host $http_host; | ||
| 338 | } | ||
| 339 | # webfinger | ||
| 334 | location /.well-known/webfinger { | 340 | location /.well-known/webfinger { |
| 335 | proxy_pass http://localhost:8001; | 341 | proxy_pass http://localhost:8001; |
| 336 | proxy_set_header Host $http_host; | 342 | proxy_set_header Host $http_host; |
| 337 | } | 343 | } |
| 338 | 344 | # Mastodon API (entry point) | |
| 339 | # optional | 345 | location /api/v1/ { |
| 340 | location /.well-known/nodeinfo { | ||
| 341 | proxy_pass http://localhost:8001; | 346 | proxy_pass http://localhost:8001; |
| 342 | proxy_set_header Host $http_host; | 347 | proxy_set_header Host $http_host; |
| 343 | } | 348 | } |
| 344 | 349 | # Mastodon API (OAuth support) | |
| 345 | location /fedi { | 350 | location /oauth { |
| 346 | proxy_pass http://localhost:8001; | 351 | proxy_pass http://localhost:8001; |
| 347 | proxy_set_header Host $http_host; | 352 | proxy_set_header Host $http_host; |
| 348 | } | 353 | } |
| 354 | # optional | ||
| 355 | location /.well-known/nodeinfo { | ||
| 356 | proxy_pass http://localhost:8001; | ||
| 357 | proxy_set_header Host $http_host; | ||
| 358 | } | ||
| 359 | |||
| 349 | .Ed | 360 | .Ed |
| 350 | .Pp | 361 | .Pp |
| 351 | Restart the nginx daemon and connect to https://example.com/fedi/walter. | 362 | Restart the nginx daemon and connect to https://example.com/fedi/walter. |