[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [donate/master] Use Redis over IPSEC instead of stunnel



commit a2e028a54ece5761b66ab62432971e9d22b0259d
Author: peterh <peterh@xxxxxxxxxxxxxxx>
Date:   Mon Jul 29 15:17:03 2019 -0700

    Use Redis over IPSEC instead of stunnel
    
    We're going to try to use Redis over IPSEC instead of stunnel because
    we've had some problems with stunnel going down.
---
 src/dependencies.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/dependencies.php b/src/dependencies.php
index d7a6fa8e..7d2b423c 100644
--- a/src/dependencies.php
+++ b/src/dependencies.php
@@ -3,7 +3,8 @@
 
 $container = $app->getContainer();
 
-$container['environment_info'] = new \Tor\EnvironmentInfo($container);
+$environmentInfo = new \Tor\EnvironmentInfo($container);
+$container['environment_info'] = $environmentInfo;
 
 // view renderer
 $container['renderer'] = function ($container) {
@@ -65,3 +66,7 @@ $container['errorHandler'] = function($container) {
   $error_handler = new \Tor\ErrorHandler($container);
   return $error_handler;
 };
+
+if (!$environmentInfo->is_dev()) {
+  Resque::setBackend('crm-int-01-priv.torproject.org:6379');
+}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits