Skip to content
Extraits de code Groupes Projets
Valider f1aeecc0 rédigé par Jonne Haß's avatar Jonne Haß
Parcourir les fichiers

force typhoeus (and thus curl) to use diaspora.yml's CA bundle

parent 60aa1ffe
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# 0.0.3.0
## Bug Fixes
* Force Typhoeus/cURL to use the CA bundle we query via the config. Also add a setting for extra verbose output.
# 0.0.2.0 # 0.0.2.0
## Refactor ## Refactor
......
...@@ -469,6 +469,7 @@ DEPENDENCIES ...@@ -469,6 +469,7 @@ DEPENDENCIES
rack-cors (= 0.2.7) rack-cors (= 0.2.7)
rack-google-analytics (= 0.11.0) rack-google-analytics (= 0.11.0)
rack-piwik (= 0.1.3) rack-piwik (= 0.1.3)
rack-protection (= 1.2)
rack-rewrite (= 1.3.1) rack-rewrite (= 1.3.1)
rack-ssl (= 1.3.2) rack-ssl (= 1.3.2)
rails (= 3.2.8) rails (= 3.2.8)
......
...@@ -51,6 +51,7 @@ defaults: ...@@ -51,6 +51,7 @@ defaults:
community_spotlight: community_spotlight:
enable: false enable: false
suggest_email: suggest_email:
typhoeus_verbose: false
services: services:
facebook: facebook:
enable: false enable: false
......
...@@ -189,6 +189,11 @@ configuration: ## Section ...@@ -189,6 +189,11 @@ configuration: ## Section
## E-Mail address users can make suggestions about who should be ## E-Mail address users can make suggestions about who should be
## in the spotlight to. ## in the spotlight to.
#suggest_email: 'admin@example.org' #suggest_email: 'admin@example.org'
## CURL debug
## Turn on extra verbose output when sending stuff. No you
## don't need to touch this unless explicitly told to.
#typhoeus_verbose: true
## Setup E-Mail ## Setup E-Mail
mail: ## Section mail: ## Section
......
...@@ -8,6 +8,8 @@ require 'active_support/base64' ...@@ -8,6 +8,8 @@ require 'active_support/base64'
class HydraWrapper class HydraWrapper
OPTS = {:max_redirects => 3, :timeout => 25000, :method => :post, OPTS = {:max_redirects => 3, :timeout => 25000, :method => :post,
:verbose => AppConfig.settings.typhoeus_verbose?,
:ssl_cacert => AppConfig.environment.certificate_authorities.get,
:headers => {'Expect' => '', :headers => {'Expect' => '',
'Transfer-Encoding' => ''} 'Transfer-Encoding' => ''}
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter