default 1 рік тому
батько
коміт
9de9295837
1 змінених файлів з 15 додано та 0 видалено
  1. 15 0
      doc/snac.8

+ 15 - 0
doc/snac.8

@@ -683,6 +683,12 @@ location /share {
     proxy_set_header Host $http_host;
     proxy_set_header Host $http_host;
     proxy_set_header X-Forwarded-For $remote_addr;
     proxy_set_header X-Forwarded-For $remote_addr;
 }
 }
+# optional (Mastodon-like "authorize interaction" entrypoint)
+location /authorize_interaction {
+    proxy_pass http://localhost:8001;
+    proxy_set_header Host $http_host;
+    proxy_set_header X-Forwarded-For $remote_addr;
+}
 .Ed
 .Ed
 .Pp
 .Pp
 Restart the nginx daemon and connect to
 Restart the nginx daemon and connect to
@@ -736,6 +742,11 @@ ProxyPreserveHost On
 <Location /share>
 <Location /share>
     ProxyPass http://127.0.0.1:8001/share
     ProxyPass http://127.0.0.1:8001/share
 </Location>
 </Location>
+
+# optional (Mastodon-like "authorize interaction" entrypoint)
+<Location /authorize_interaction>
+    ProxyPass http://127.0.0.1:8001/share
+</Location>
 .Ed
 .Ed
 .Pp
 .Pp
 Since version 2.43,
 Since version 2.43,
@@ -795,6 +806,10 @@ location "/.well-known/host-meta" {
 location "/share" {
 location "/share" {
     fastcgi socket tcp "127.0.0.1" 8001
     fastcgi socket tcp "127.0.0.1" 8001
 }
 }
+
+location "/authorize_interaction" {
+    fastcgi socket tcp "127.0.0.1" 8001
+}
 .Ed
 .Ed
 .Sh SEE ALSO
 .Sh SEE ALSO
 .Xr snac 1 ,
 .Xr snac 1 ,