diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-07-23 01:17:06 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-07-23 01:17:06 +0300 |
commit | ed8e340fa29f6d2afea3b9d9bcd89670893425d5 (patch) | |
tree | c709cbb8d4ff0480ac7fe772707602190a9e31da /config | |
parent | 9b24407b68bbd9a80e96ffe5795b1286272b7087 (diff) |
Add a dummy route for /.well-known/host-meta
This was removed from the diaspora_federation gem, since it's not used
for the federation/discovery anymore since a long time. But old versions
of the ConnectionTester up to version 0.7.17 still check if this route
exist or else they mark the pod as offline. So lets add a dummy
host-meta with an empty response back, so the ConnectionTester is happy
again until we can remove this workaround again.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/cors.rb | 1 | ||||
-rw-r--r-- | config/routes.rb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 11a6a225b..4575c3b64 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -11,7 +11,6 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do allow do origins "*" resource "/api/*", methods: :any - resource "/.well-known/host-meta" resource "/.well-known/webfinger" resource "/.well-known/openid-configuration" end diff --git a/config/routes.rb b/config/routes.rb index f15cdd1d1..45f992209 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -213,6 +213,7 @@ Rails.application.routes.draw do get ".well-known/nodeinfo", to: "node_info#jrd" get "nodeinfo/:version", to: "node_info#document", as: "node_info", constraints: {version: /\d+\.\d+/} get "statistics", to: "node_info#statistics" + get ".well-known/host-meta", to: "node_info#host_meta" # Terms if AppConfig.settings.terms.enable? || Rails.env.test? |