summaryrefslogtreecommitdiff
path: root/doc/snac.8
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snac.8')
-rw-r--r--doc/snac.815
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index 390bb63..997845a 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -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)
680location /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
681Restart the nginx daemon and connect to 687Restart 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
729Since version 2.43, 740Since version 2.43,
@@ -779,6 +790,10 @@ location "/.well-known/nodeinfo" {
779location "/.well-known/host-meta" { 790location "/.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
794location "/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 ,