mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
cleaned configs
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
[global]
|
||||
redis_server = 127.0.0.1:6379 #redis address hostort
|
||||
redis_server = 127.0.0.1:6379 #redis address host:port
|
||||
redis_db = 10 # redis database number
|
||||
|
||||
[balancer]
|
||||
@@ -25,7 +25,7 @@ rpc_encoding = gob # use JSON for RPC encoding
|
||||
|
||||
[rater]
|
||||
enabled = true
|
||||
listen = 127.0.0.1:1234 # listening address hostort, internal for internal communication only
|
||||
listen = 127.0.0.1:1234 # listening address host:port, internal for internal communication only
|
||||
balancer = disabled # if defined it will register to balancer as worker
|
||||
rpc_encoding = gob # use JSON for RPC encoding
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
[global]
|
||||
redis_server = 127.0.0.1:6379 #redis address hostort
|
||||
redis_server = 127.0.0.1:6379 #redis address host:port
|
||||
redis_db = 10 # redis database number
|
||||
|
||||
[balancer]
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
[global]
|
||||
redis_server = 127.0.0.1:6379 #redis address hostort
|
||||
redis_server = 127.0.0.1:6379 #redis address host:port
|
||||
redis_db = 10 # redis database number
|
||||
|
||||
[rater]
|
||||
enabled = true
|
||||
listen = 127.0.0.1:2001 # listening address hostort, internal for internal communication only
|
||||
listen = 127.0.0.1:2001 # listening address host:port, internal for internal communication only
|
||||
balancer = disabled # if defined it will register to balancer as worker
|
||||
rpc_encoding = gob # use JSON for RPC encoding
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
[global]
|
||||
redis_server = 127.0.0.1:6379 #redis address hostort
|
||||
redis_server = 127.0.0.1:6379 #redis address host:port
|
||||
redis_db = 10 # redis database number
|
||||
|
||||
[rater]
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
[global]
|
||||
redis_server = test #redis address host:port
|
||||
redis_db = 1 # redis database number
|
||||
redis_user = test
|
||||
redis_pass = test
|
||||
db_type = test #
|
||||
db_host = test # The host to connect to. Values that start with / are for UNIX domain sockets.
|
||||
|
||||
@@ -37,7 +37,7 @@ func NewRedisStorage(address string, db int, pass string) (*RedisStorage, error)
|
||||
address = "tcp:" + address
|
||||
}
|
||||
ndb := godis.New(address, db, pass)
|
||||
ms := &MyMarshaler{}
|
||||
ms := new(MyMarshaler)
|
||||
return &RedisStorage{db: ndb, dbNb: db, ms: ms}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user