Example #1
0
if SSH_ENABLED:

    # Start SSH game connections. Will create a keypair in
    # evennia/game if necessary.

    from evennia.server.portal import ssh

    for interface in SSH_INTERFACES:
        ifacestr = ""
        if interface not in ('0.0.0.0', '::') or len(SSH_INTERFACES) > 1:
            ifacestr = "-%s" % interface
        for port in SSH_PORTS:
            pstring = "%s:%s" % (ifacestr, port)
            factory = ssh.makeFactory({
                'protocolFactory': ssh.SshProtocol,
                'protocolArgs': (),
                'sessions': PORTAL_SESSIONS
            })
            factory.noisy = False
            ssh_service = internet.TCPServer(port,
                                             factory,
                                             interface=interface)
            ssh_service.setName('EvenniaSSH%s' % pstring)
            PORTAL.services.addService(ssh_service)

            print("  ssh%s: %s" % (ifacestr, port))

if WEBSERVER_ENABLED:

    # Start a reverse proxy to relay data to the Server-side webserver
Example #2
0
if SSH_ENABLED:

    # Start SSH game connections. Will create a keypair in
    # evennia/game if necessary.

    from evennia.server.portal import ssh

    for interface in SSH_INTERFACES:
        ifacestr = ""
        if interface not in ("0.0.0.0", "::") or len(SSH_INTERFACES) > 1:
            ifacestr = "-%s" % interface
        for port in SSH_PORTS:
            pstring = "%s:%s" % (ifacestr, port)
            factory = ssh.makeFactory({
                "protocolFactory": ssh.SshProtocol,
                "protocolArgs": (),
                "sessions": PORTAL_SESSIONS,
            })
            factory.noisy = False
            ssh_service = internet.TCPServer(port,
                                             factory,
                                             interface=interface)
            ssh_service.setName("EvenniaSSH%s" % pstring)
            PORTAL.services.addService(ssh_service)

            INFO_DICT["ssh"].append("ssh%s: %s" % (ifacestr, port))

if WEBSERVER_ENABLED:
    from evennia.server.webserver import Website

    # Start a reverse proxy to relay data to the Server-side webserver
Example #3
0
if SSH_ENABLED:

    # Start SSH game connections. Will create a keypair in
    # evennia/game if necessary.

    from evennia.server.portal import ssh

    for interface in SSH_INTERFACES:
        ifacestr = ""
        if interface not in ('0.0.0.0', '::') or len(SSH_INTERFACES) > 1:
            ifacestr = "-%s" % interface
        for port in SSH_PORTS:
            pstring = "%s:%s" % (ifacestr, port)
            factory = ssh.makeFactory({'protocolFactory': ssh.SshProtocol,
                                       'protocolArgs': (),
                                       'sessions': PORTAL_SESSIONS})
            factory.noisy = False
            ssh_service = internet.TCPServer(port, factory, interface=interface)
            ssh_service.setName('EvenniaSSH%s' % pstring)
            PORTAL.services.addService(ssh_service)

            INFO_DICT["ssh"].append("ssh%s: %s" % (ifacestr, port))


if WEBSERVER_ENABLED:
    from evennia.server.webserver import Website

    # Start a reverse proxy to relay data to the Server-side webserver

    websocket_started = False
Example #4
0
if SSH_ENABLED:

    # Start SSH game connections. Will create a keypair in
    # evennia/game if necessary.

    from evennia.server.portal import ssh

    for interface in SSH_INTERFACES:
        ifacestr = ""
        if interface not in ("0.0.0.0", "::") or len(SSH_INTERFACES) > 1:
            ifacestr = "-%s" % interface
        for port in SSH_PORTS:
            pstring = "%s:%s" % (ifacestr, port)
            factory = ssh.makeFactory(
                {"protocolFactory": ssh.SshProtocol, "protocolArgs": (), "sessions": PORTAL_SESSIONS}
            )
            ssh_service = internet.TCPServer(port, factory, interface=interface)
            ssh_service.setName("EvenniaSSH%s" % pstring)
            PORTAL.services.addService(ssh_service)

            print("  ssh%s: %s" % (ifacestr, port))


if WEBSERVER_ENABLED:

    # Start a reverse proxy to relay data to the Server-side webserver

    websocket_started = False
    for interface in WEBSERVER_INTERFACES:
        ifacestr = ""