add suggestions/web config
authorHakaba Hitoyo <hakabahitoyo@example.com>
Thu, 2 Aug 2018 09:03:35 +0000 (18:03 +0900)
committerHakaba Hitoyo <hakabahitoyo@example.com>
Thu, 2 Aug 2018 09:03:35 +0000 (18:03 +0900)
config/config.exs
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 614a3e1fe1688105c7536ad8cf464fb75df61297..aa35f14fbf6f277baccbdc5b4a395d31a28233fd 100644 (file)
@@ -113,7 +113,8 @@ config :pleroma, :suggestions,
   enabled: false,
   third_party_engine:
     "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
-  timeout: 300_000
+  timeout: 300_000,
+  web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
 
 # Import environment specific config. This must remain at the bottom
 # of this file so it overrides the configuration defined above.
index f9a6d9c25c8f9953ec9893d8c194cea1fea1344f..2fab6027499caa331870870687da1c6770fd2259 100644 (file)
@@ -50,7 +50,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         suggestions: %{
           enabled: Keyword.get(suggestions, :enabled, false),
           thirdPartyEngine: Keyword.get(suggestions, :third_party_engine, ""),
-          timeout: Keyword.get(suggestions, :timeout, 5000)
+          timeout: Keyword.get(suggestions, :timeout, 5000),
+          web: Keyword.get(suggestions, :web, "")
         }
       }
     }