tested media path config

This commit is contained in:
Radu Ioan Fericean
2012-08-17 17:13:09 +03:00
parent 6cc75afea6
commit df86338b0c
3 changed files with 9 additions and 3 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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