diff options
| -rw-r--r-- | doc/snac.8 | 15 |
1 files changed, 15 insertions, 0 deletions
| @@ -676,6 +676,12 @@ location /.well-known/host-meta { | |||
| 676 | proxy_set_header Host $http_host; | 676 | proxy_set_header Host $http_host; |
| 677 | proxy_set_header X-Forwarded-For $remote_addr; | 677 | proxy_set_header X-Forwarded-For $remote_addr; |
| 678 | } | 678 | } |
| 679 | # optional (Mastodon-like link share entrypoint) | ||
| 680 | location /share { | ||
| 681 | proxy_pass http://localhost:8001; | ||
| 682 | proxy_set_header Host $http_host; | ||
| 683 | proxy_set_header X-Forwarded-For $remote_addr; | ||
| 684 | } | ||
| 679 | .Ed | 685 | .Ed |
| 680 | .Pp | 686 | .Pp |
| 681 | Restart the nginx daemon and connect to | 687 | Restart the nginx daemon and connect to |
| @@ -724,6 +730,11 @@ ProxyPreserveHost On | |||
| 724 | <Location /.well-known/host-meta> | 730 | <Location /.well-known/host-meta> |
| 725 | ProxyPass http://127.0.0.1:8001/.well-known/host-meta | 731 | ProxyPass http://127.0.0.1:8001/.well-known/host-meta |
| 726 | </Location> | 732 | </Location> |
| 733 | |||
| 734 | # optional (Mastodon-like link share entrypoint) | ||
| 735 | <Location /share> | ||
| 736 | ProxyPass http://127.0.0.1:8001/share | ||
| 737 | </Location> | ||
| 727 | .Ed | 738 | .Ed |
| 728 | .Pp | 739 | .Pp |
| 729 | Since version 2.43, | 740 | Since version 2.43, |
| @@ -779,6 +790,10 @@ location "/.well-known/nodeinfo" { | |||
| 779 | location "/.well-known/host-meta" { | 790 | location "/.well-known/host-meta" { |
| 780 | fastcgi socket tcp "127.0.0.1" 8001 | 791 | fastcgi socket tcp "127.0.0.1" 8001 |
| 781 | } | 792 | } |
| 793 | |||
| 794 | location "/share" { | ||
| 795 | fastcgi socket tcp "127.0.0.1" 8001 | ||
| 796 | } | ||
| 782 | .Ed | 797 | .Ed |
| 783 | .Sh SEE ALSO | 798 | .Sh SEE ALSO |
| 784 | .Xr snac 1 , | 799 | .Xr snac 1 , |