Beispiel #1
0
def main():
    loadConfig()
    configure()
    run(host=Settings.GATEWAY_HTTP_BIND_ADDRESS,
        port=Settings.GATEWAY_HTTP_PORT,
        server='gevent',
        certfile=Settings.CERT_FILE,
        keyfile=Settings.KEY_FILE)
Beispiel #2
0
def main():
    loadConfig()
    m = Monitor()
    m.start()
    bottle_run(host=Settings.MONITOR_HTTP_BIND_ADDRESS,
               port=Settings.MONITOR_HTTP_PORT,
               server='gevent',
               certfile=Settings.CERT_FILE,
               keyfile=Settings.KEY_FILE)
Beispiel #3
0
def main():
    loadConfig()
    m = Monitor()
    m.start()
    bottle_run(host='0.0.0.0',
               port=9091,
               server='gevent',
               certfile=Settings.CERT_FILE,
               keyfile=Settings.KEY_FILE)
Beispiel #4
0
def main():
    loadConfig()
    r = Relay()
    r.start()
    bottle_run(host=Settings.RELAY_HTTP_BIND_ADDRESS,
               port=Settings.RELAY_HTTP_PORT,
               server='gevent',
               certfile=Settings.CERT_FILE,
               keyfile=Settings.KEY_FILE)
Beispiel #5
0
def main():
    loadConfig()
    configure()
    run(
        host=Settings.GATEWAY_HTTP_BIND_ADDRESS, 
        port=Settings.GATEWAY_HTTP_PORT, 
        server='gevent', 
        certfile=Settings.CERT_FILE,
        keyfile=Settings.KEY_FILE
    )
Beispiel #6
0
def main():
    loadConfig()
    r = Relay()
    r.start()
    bottle_run(
        host=Settings.RELAY_HTTP_BIND_ADDRESS,
        port=Settings.RELAY_HTTP_PORT,
        server='gevent',
        certfile=Settings.CERT_FILE,
        keyfile=Settings.KEY_FILE
    )
Beispiel #7
0
def main():
    loadConfig()
    m = Monitor()
    m.start()
    bottle_run(
        host=Settings.MONITOR_HTTP_BIND_ADDRESS,
        port=Settings.MONITOR_HTTP_PORT,
        server='gevent',
        certfile=Settings.CERT_FILE,
        keyfile=Settings.KEY_FILE
    )
Beispiel #8
0
def main():
    cl_args = parse_cl_args()
    loadConfig(cl_args)

    m = Monitor()
    m.start()
    app.install(EnableCors())
    app.run(host=Settings.MONITOR_HTTP_BIND_ADDRESS,
            port=Settings.MONITOR_HTTP_PORT,
            server='gevent',
            certfile=Settings.CERT_FILE,
            keyfile=Settings.KEY_FILE)
Beispiel #9
0
def main():
    cl_args = parse_cl_args()
    if cl_args.loglevel:
        logger.setLevel(cl_args.loglevel)

    loadConfig(cl_args)

    r = Relay()
    r.start()

    app.install(EnableCors())
    app.run(host=Settings.RELAY_HTTP_BIND_ADDRESS,
            port=Settings.RELAY_HTTP_PORT,
            server='gevent',
            certfile=Settings.CERT_FILE,
            keyfile=Settings.KEY_FILE)
Beispiel #10
0
def main():
    cl_args = parse_cl_args()
    if cl_args.loglevel:
        logger.setLevel(cl_args.loglevel)

    logger.info('Loading config...')
    loadConfig(cl_args)

    logger.info('Installing EnableCors ...')
    app.install(EnableCors())
    logger.info('Installing CustomLogging ...')
    app.install(CustomLogging())
    logger.info('Running bottle app ...')
    app.run(
        host=Settings.BOUNCER_HTTP_BIND_ADDRESS,
        port=Settings.BOUNCER_HTTP_PORT,
        server='gevent',
        certfile=Settings.CERT_FILE,
        keyfile=Settings.KEY_FILE,
        quiet=True,
    )
Beispiel #11
0
def main():
    loadConfig()
    r = Relay()
    r.start()
    bottle_run(host='0.0.0.0', port=9090, server='gevent')
Beispiel #12
0
def main():
    loadConfig()
    r = Relay()
    r.start()
    bottle_run(host='0.0.0.0', port=9090, server='gevent')
Beispiel #13
0
def main():
    loadConfig()
    configure()
    run(host=Settings.GATEWAY_HTTP_BIND_ADDRESS, port=Settings.GATEWAY_HTTP_PORT, server='gevent')
Beispiel #14
0
def main():
    loadConfig()
    m = Monitor()
    m.start()
    bottle_run(host='0.0.0.0', port=9091, server='gevent')
Beispiel #15
0
def main():
    loadConfig()
    m = Monitor()
    m.start()
    bottle_run(host='0.0.0.0', port=9091, server='gevent')
Beispiel #16
0
def main():
    loadConfig()

    configure()
    run(host='0.0.0.0', port=Settings.GATEWAY_HTTP_PORT, server='gevent')