* Get rid of early pathname requirement * Use require_relative where approciate * Drop unused files * Imported new application.rb, environment.rb and environments/* from fresh Rails app * Cleaned up boot.rb * Load config in boot.rb * Deduplicate environments/integration*.rb * Move username blacklist into defaults.yml * Ruby 1.9 Hash syntax everywhere * Reorganize lib/diaspora/markdownify to match conventions * Get rid of full path requires where possible * Add dummy content to production section diaspora.yml.example to prevent warning * Drop sqlite? method * Move postgres? method into ConfigurationMethods * Drop token authentication from User
14 lines
417 B
Ruby
14 lines
417 B
Ruby
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
options = {
|
|
timeout: 25,
|
|
ssl: {
|
|
ca_file: AppConfig.environment.certificate_authorities.get
|
|
}
|
|
}
|
|
|
|
Faraday.default_connection = Faraday::Connection.new(options) do |b|
|
|
b.use FaradayMiddleware::FollowRedirects
|
|
b.adapter Faraday.default_adapter
|
|
end
|