iso8583-aggregator.ini 2.17 KB
###
# logging configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###

[app:main]
use = egg:iso8583_web

pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = id
pyramid.includes =
    opensipkd.views.bjb.linkaja

sqlalchemy.url = postgresql://user:pass@localhost/db
sqlalchemy.pool_pre_ping = true
sqlalchemy.pool_size = 50
sqlalchemy.max_overflow = 100

timezone = Asia/Jakarta
localization = id_ID.UTF-8

mail.host = localhost 
mail.port = 25 
mail.username = user@example.com 
mail.password = FIXME 
mail.sender_name = Example Name 

retry.attempts = 3

# By default, the toolbar only appears for clients from IP addresses
# '127.0.0.1' and '::1'.
# debugtoolbar.hosts = 127.0.0.1 ::1

[alembic]
# path to migration scripts
script_location = iso8583_web/alembic
file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s
# file_template = %%(rev)s_%%(slug)s

###
# wsgi server configuration
###

[server:main]
use = egg:waitress#main
listen = 0.0.0.0:7001
threads = 12

###
# ISO-8583 Threads
###

[host_bjb]
ip = 127.0.0.1
port = 10504
listen = false
timeout = 15
streamer = bjb
module = opensipkd.iso8583.bjb.pbb.agratek
request_bits =
    2:622011888888888888
    18:6025
    22:010
    32:015
    33:00110
    35:622011888888888888=9912?
    41:AGRATEK
    42:LINKAJA
    43:AGRATEK-LINKAJA
    49:360
    59:PAY
    63:214
# Bit 60 diisi sesuai prefix bit 61 (Invoice ID)
bit_60 =
    3271:123
    3275:120
    3278:133
    3619:145
    3675:122

###
# Log
###

[loggers]
keys = root, iso8583_web, jsonrpc

[handlers]
keys = console, file

[formatters]
keys = generic

[logger_root]
level = DEBUG 
handlers = console, file

[logger_iso8583_web]
level = DEBUG
handlers =
qualname = iso8583_web

[logger_jsonrpc]
level = DEBUG
handlers = console, file
qualname = pyramid_rpc.jsonrpc

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = DEBUG 
formatter = generic

[handler_file]
class = FileHandler
args = ('/home/sugiana/log/agratek.log', 'a')
level = DEBUG
formatter = generic

[formatter_generic]
format = %(asctime)s %(levelname)s %(message)s