diff options
| author | 2025-01-16 14:21:54 +0100 | |
|---|---|---|
| committer | 2025-01-16 14:21:54 +0100 | |
| commit | 9de9295837b6b7536be4d9b621d41fd1c22bd750 (patch) | |
| tree | 4d7f99fcff6613713a65ff38a51ea6a3ff3b869e /doc | |
| parent | Implemented Mastodon-like /authorize_interaction. (diff) | |
| download | penes-snac2-9de9295837b6b7536be4d9b621d41fd1c22bd750.tar.gz penes-snac2-9de9295837b6b7536be4d9b621d41fd1c22bd750.tar.xz penes-snac2-9de9295837b6b7536be4d9b621d41fd1c22bd750.zip | |
Updated documentation.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/snac.8 | 15 |
1 files changed, 15 insertions, 0 deletions
| @@ -683,6 +683,12 @@ location /share { | |||
| 683 | proxy_set_header Host $http_host; | 683 | proxy_set_header Host $http_host; |
| 684 | proxy_set_header X-Forwarded-For $remote_addr; | 684 | proxy_set_header X-Forwarded-For $remote_addr; |
| 685 | } | 685 | } |
| 686 | # optional (Mastodon-like "authorize interaction" entrypoint) | ||
| 687 | location /authorize_interaction { | ||
| 688 | proxy_pass http://localhost:8001; | ||
| 689 | proxy_set_header Host $http_host; | ||
| 690 | proxy_set_header X-Forwarded-For $remote_addr; | ||
| 691 | } | ||
| 686 | .Ed | 692 | .Ed |
| 687 | .Pp | 693 | .Pp |
| 688 | Restart the nginx daemon and connect to | 694 | Restart the nginx daemon and connect to |
| @@ -736,6 +742,11 @@ ProxyPreserveHost On | |||
| 736 | <Location /share> | 742 | <Location /share> |
| 737 | ProxyPass http://127.0.0.1:8001/share | 743 | ProxyPass http://127.0.0.1:8001/share |
| 738 | </Location> | 744 | </Location> |
| 745 | |||
| 746 | # optional (Mastodon-like "authorize interaction" entrypoint) | ||
| 747 | <Location /authorize_interaction> | ||
| 748 | ProxyPass http://127.0.0.1:8001/share | ||
| 749 | </Location> | ||
| 739 | .Ed | 750 | .Ed |
| 740 | .Pp | 751 | .Pp |
| 741 | Since version 2.43, | 752 | Since version 2.43, |
| @@ -795,6 +806,10 @@ location "/.well-known/host-meta" { | |||
| 795 | location "/share" { | 806 | location "/share" { |
| 796 | fastcgi socket tcp "127.0.0.1" 8001 | 807 | fastcgi socket tcp "127.0.0.1" 8001 |
| 797 | } | 808 | } |
| 809 | |||
| 810 | location "/authorize_interaction" { | ||
| 811 | fastcgi socket tcp "127.0.0.1" 8001 | ||
| 812 | } | ||
| 798 | .Ed | 813 | .Ed |
| 799 | .Sh SEE ALSO | 814 | .Sh SEE ALSO |
| 800 | .Xr snac 1 , | 815 | .Xr snac 1 , |