wire up outbound proxy to config
Some checks failed
CI / test (mysql, cucumber, 3.2) (pull_request) Has been cancelled
CI / test (mysql, cucumber, 3.3) (pull_request) Has been cancelled
CI / test (mysql, other, 3.2) (pull_request) Has been cancelled
CI / test (mysql, other, 3.3) (pull_request) Has been cancelled
CI / test (postgresql, cucumber, 3.2) (pull_request) Has been cancelled
CI / test (postgresql, cucumber, 3.3) (pull_request) Has been cancelled
CI / test (postgresql, other, 3.2) (pull_request) Has been cancelled
CI / test (postgresql, other, 3.3) (pull_request) Has been cancelled
Lint / pronto (pull_request) Has been cancelled
Some checks failed
CI / test (mysql, cucumber, 3.2) (pull_request) Has been cancelled
CI / test (mysql, cucumber, 3.3) (pull_request) Has been cancelled
CI / test (mysql, other, 3.2) (pull_request) Has been cancelled
CI / test (mysql, other, 3.3) (pull_request) Has been cancelled
CI / test (postgresql, cucumber, 3.2) (pull_request) Has been cancelled
CI / test (postgresql, cucumber, 3.3) (pull_request) Has been cancelled
CI / test (postgresql, other, 3.2) (pull_request) Has been cancelled
CI / test (postgresql, other, 3.3) (pull_request) Has been cancelled
Lint / pronto (pull_request) Has been cancelled
This commit is contained in:
parent
37096d9c88
commit
2b877f04a2
5 changed files with 26 additions and 15 deletions
4
Gemfile
4
Gemfile
|
|
@ -19,8 +19,8 @@ gem "puma", "6.4.2", require: false
|
|||
|
||||
# Federation
|
||||
|
||||
gem "diaspora_federation-json_schema", "1.1.0"
|
||||
gem "diaspora_federation-rails", "1.1.0"
|
||||
gem "diaspora_federation-json_schema", git: "https://git.gynoid.me/nocebo/diaspora_federation.git", branch: "outbound-proxy"
|
||||
gem "diaspora_federation-rails", git: "https://git.gynoid.me/nocebo/diaspora_federation.git", branch: "outbound-proxy"
|
||||
|
||||
# API and JSON
|
||||
|
||||
|
|
|
|||
30
Gemfile.lock
30
Gemfile.lock
|
|
@ -1,3 +1,19 @@
|
|||
GIT
|
||||
remote: https://git.gynoid.me/nocebo/diaspora_federation.git
|
||||
revision: 931dbdb655079c42954ad09533606740f24ac071
|
||||
branch: outbound-proxy
|
||||
specs:
|
||||
diaspora_federation (1.1.0)
|
||||
faraday (>= 1.0, < 3)
|
||||
faraday-follow_redirects (~> 0.3)
|
||||
nokogiri (~> 1.6, >= 1.6.8)
|
||||
typhoeus (~> 1.0)
|
||||
valid (~> 1.0)
|
||||
diaspora_federation-json_schema (1.1.0)
|
||||
diaspora_federation-rails (1.1.0)
|
||||
actionpack (>= 5.2, < 8)
|
||||
diaspora_federation (= 1.1.0)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
|
|
@ -184,16 +200,6 @@ GEM
|
|||
devise_lastseenable (0.0.6)
|
||||
devise
|
||||
rails (>= 3.0.4)
|
||||
diaspora_federation (1.1.0)
|
||||
faraday (>= 1.0, < 3)
|
||||
faraday-follow_redirects (~> 0.3)
|
||||
nokogiri (~> 1.6, >= 1.6.8)
|
||||
typhoeus (~> 1.0)
|
||||
valid (~> 1.0)
|
||||
diaspora_federation-json_schema (1.1.0)
|
||||
diaspora_federation-rails (1.1.0)
|
||||
actionpack (>= 5.2, < 8)
|
||||
diaspora_federation (= 1.1.0)
|
||||
diaspora_federation-test (1.1.0)
|
||||
diaspora_federation (= 1.1.0)
|
||||
fabrication (~> 2.29)
|
||||
|
|
@ -790,8 +796,8 @@ DEPENDENCIES
|
|||
devise (= 4.9.4)
|
||||
devise-two-factor (= 4.1.0)
|
||||
devise_lastseenable (= 0.0.6)
|
||||
diaspora_federation-json_schema (= 1.1.0)
|
||||
diaspora_federation-rails (= 1.1.0)
|
||||
diaspora_federation-json_schema!
|
||||
diaspora_federation-rails!
|
||||
diaspora_federation-test (= 1.1.0)
|
||||
factory_bot_rails (= 6.4.3)
|
||||
faraday (= 2.9.0)
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ defaults:
|
|||
debug:
|
||||
sql: false
|
||||
federation: false
|
||||
http_proxy:
|
||||
server:
|
||||
listen: "tcp://127.0.0.1:3000"
|
||||
rails_environment: 'development'
|
||||
|
|
|
|||
|
|
@ -65,6 +65,9 @@
|
|||
## You probably don't want to uncomment or change this.
|
||||
#pubsub_server = "https://pubsubhubbub.appspot.com/"
|
||||
|
||||
## Outbound HTTP proxy
|
||||
#http_proxy = "http://10.0.0.100:1234"
|
||||
|
||||
## Sidekiq - background processing
|
||||
[configuration.environment.sidekiq]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@ DiasporaFederation.configure do |config|
|
|||
|
||||
config.certificate_authorities = AppConfig.environment.certificate_authorities.get
|
||||
|
||||
config.webfinger_http_fallback = Rails.env == "development"
|
||||
config.webfinger_http_fallback = Rails.env.development?
|
||||
|
||||
config.http_concurrency = AppConfig.settings.typhoeus_concurrency.to_i
|
||||
config.http_verbose = AppConfig.settings.typhoeus_verbose?
|
||||
config.http_proxy = AppConfig.environment.http_proxy
|
||||
|
||||
config.define_callbacks do
|
||||
on :fetch_person_for_webfinger do |diaspora_id|
|
||||
|
|
|
|||
Loading…
Reference in a new issue