Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created February 1, 2013 11:52
Show Gist options
  • Save justinvdm/4690887 to your computer and use it in GitHub Desktop.
Save justinvdm/4690887 to your computer and use it in GitHub Desktop.
transport_name: imimobile_ussd_transport
web_path: /api/v1/imimobile/ussd
web_port: 4043
noisy: True
suffix_to_addrs:
test_integration: '9221234567' # The missed call dedicated number
middleware:
- logging_mw: vumi.middleware.logging.LoggingMiddleware
- storing_mw: vumi.middleware.message_storing.StoringMiddleware
# - ussd_tagging_mw: vumi.middleware.tagger.TaggingMiddleware
# - normalize_msisdn_mw: go.vumitools.middleware.NormalizeMsisdnMiddleware
# Configure the middlewares
logging_mw:
log_level: debug
#ussd_tagging_mw:
# incoming:
# addr_pattern: '^(\d+)$'
# tagpool_template: 'imimobile_ussd'
# tagname_template: '\1'
# outgoing:
# tagname_pattern: '.*'
# msg_template: {}
storing_mw:
riak_manager:
bucket_prefix: vumigo.
redis_manager:
key_prefix: "vumigo"
db: 1
host: '127.0.0.1'
port: 6379
#normalize_msisdn_mw:
# country_code: '91'
[inet_http_server] ; inet (TCP) server disabled by default
port=127.0.0.1:7101 ; (ip_address:port specifier, *:port for all iface)
[supervisord]
logfile=./logs/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=./tmp/pids/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=http://127.0.0.1:7101 ; use an http:// url to specify an inet socket
[program:imimobile_ussd_transport]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker-class=vumi.transports.imimobile.ImiMobileUssdTransport
--vhost=/develop
--config=./config/imimobile_ussd_transport.yaml
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:imimobile_ussd_integration_test]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker-class=vumi.demos.words.EchoWorker
--set-option=transport_name:imimobile_ussd_transport
--vhost=/develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment