Files
dojo/lib/Dojo/Conf.pm.example
2018-07-13 19:06:08 -05:00

49 lines
1002 B
Plaintext

package Dojo::Conf;
use strict;
use warnings;
#Paths
use constant {
MOD => "public", #location of modules
SERVER_NAME => "localhost:3000",
CHAT_SRV => "chat.vuelodegrulla.com",
};
# database access
use constant {
VUELODB => "dbname",
VUELODB_H => "localhost",
VUELODB_UW => "writtername",
VUELODB_UWP => "writterpass",
VUELODB_UR => "readername",
VUELODB_URP => "readerpass",
};
our $radio ={ #hash to configure icecast radio
server_name => SERVER_NAME,
radio_server =>"https://myradio.com",
channel => "/test",
listen_url =>"http://radio:8000/test",
};
our $chat={ #hash to configure chat (candy prodody) server
chat_addr => "https://".CHAT_SRV,
chat_srv => CHAT_SRV,
chat_channel => 'Users@radio.'.CHAT_SRV,
};
our %rtmp={ #hash ro configure rtpm video server
rtmp_server =>"rtmp://myserver.com/steam",
rtmp_channel =>"channel",
};
our %def=( #some other global configuration
modules => MOD,
# layout => "default"
);
1;
__END__