mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
tested media path config
This commit is contained in:
@@ -174,7 +174,7 @@ func listenToRPCRequests(rpcResponder interface{}, rpcAddress string, rpc_encodi
|
||||
}
|
||||
|
||||
func listenToHttpRequests() {
|
||||
http.Handle("/static/", http.FileServer(http.Dir("")))
|
||||
http.Handle("/static/", http.FileServer(http.Dir(stats_media_path)))
|
||||
http.HandleFunc("/", statusHandler)
|
||||
http.HandleFunc("/getmem", memoryHandler)
|
||||
http.HandleFunc("/raters", ratersHandler)
|
||||
|
||||
@@ -50,9 +50,10 @@ enabled = true
|
||||
enabled = true
|
||||
rater = 127.0.0.1:2000 #address where to access rater. Can be internal, direct rater address or the address of a balancer
|
||||
freeswitch_server = localhost:8021 # freeswitch address host:port
|
||||
freeswitch_pass = ClueCon # freeswitch address host:port
|
||||
freeswitch_pass = ClueCon # freesw/home/rif/Documents/prog/go/src/github.com/cgrates/cgrates/confitch address host:port
|
||||
rpc_encoding = gob # use JSON for RPC encoding
|
||||
|
||||
[stats_server]
|
||||
enabled = true
|
||||
listen = 127.0.0.1:8000 # Web server address (for stat reports)
|
||||
listen = 127.0.0.1:8000 # Web server address (for stat reports)
|
||||
media_path = /home/rif/Documents/prog/go/src/github.com/cgrates/cgrates/data
|
||||
|
||||
@@ -34,3 +34,8 @@ enabled = true
|
||||
[freeswitch]
|
||||
server = localhost:8021
|
||||
pass = ClueCon
|
||||
|
||||
[stats_server]
|
||||
enabled = true
|
||||
listen = 127.0.0.1:8000 # Web server address (for stat reports)
|
||||
media_path = /home/rif/Documents/prog/go/src/github.com/cgrates/cgrates/data
|
||||
|
||||
Reference in New Issue
Block a user