diff options
| -rw-r--r-- | doc/snac.8 | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -341,11 +341,15 @@ location /.well-known/webfinger { | |||
| 341 | proxy_pass http://localhost:8001; | 341 | proxy_pass http://localhost:8001; |
| 342 | proxy_set_header Host $http_host; | 342 | proxy_set_header Host $http_host; |
| 343 | } | 343 | } |
| 344 | # Mastodon API (entry point) | 344 | # Mastodon API (entry points) |
| 345 | location /api/v1/ { | 345 | location /api/v1/ { |
| 346 | proxy_pass http://localhost:8001; | 346 | proxy_pass http://localhost:8001; |
| 347 | proxy_set_header Host $http_host; | 347 | proxy_set_header Host $http_host; |
| 348 | } | 348 | } |
| 349 | location /api/v2/ { | ||
| 350 | proxy_pass http://localhost:8001; | ||
| 351 | proxy_set_header Host $http_host; | ||
| 352 | } | ||
| 349 | # Mastodon API (OAuth support) | 353 | # Mastodon API (OAuth support) |
| 350 | location /oauth { | 354 | location /oauth { |
| 351 | proxy_pass http://localhost:8001; | 355 | proxy_pass http://localhost:8001; |