├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── bin ├── index.js ├── install.sh └── uninstall.sh ├── package.json ├── src ├── cli │ ├── commands │ │ ├── add.js │ │ ├── help.js │ │ ├── install.js │ │ ├── kill.js │ │ ├── list.js │ │ ├── migrate.js │ │ ├── open.js │ │ ├── rm.js │ │ ├── start.js │ │ ├── status.js │ │ ├── stop.js │ │ ├── tail.js │ │ ├── uninstall.js │ │ └── version.js │ ├── doc │ │ └── help.txt │ ├── index.js │ ├── templates │ │ ├── katon.firewall.plist │ │ ├── katon.plist │ │ └── resolver │ └── utils │ │ ├── launchctl.js │ │ ├── list-hosts.js │ │ ├── osx-minor-version.js │ │ ├── path-to-host.js │ │ └── render.js ├── config.js └── daemon │ ├── certs │ ├── server.crt │ └── server.key │ ├── control.js │ ├── dns-server.js │ ├── http-router.js │ ├── https-proxy.js │ ├── index.js │ ├── procs.js │ ├── templates │ ├── 200.html │ ├── 404.html │ ├── 502.html │ └── layout.html │ └── utils │ ├── http-router.js │ ├── render.js │ ├── tail.js │ └── timer.js └── test ├── cli └── index.js ├── daemon ├── fixtures │ ├── node-slow │ │ └── index.js │ ├── node │ │ └── index.js │ ├── python │ │ └── index.html │ ├── subdomain.node │ │ └── index.js │ └── websocket │ │ ├── client.js │ │ └── index.js ├── helper.js └── index.js └── setup.js /.gitignore: -------------------------------------------------------------------------------- 1 | **/*.log 2 | node_modules 3 | tmp 4 | .DS_Store -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/README.md -------------------------------------------------------------------------------- /bin/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/bin/index.js -------------------------------------------------------------------------------- /bin/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/bin/install.sh -------------------------------------------------------------------------------- /bin/uninstall.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/bin/uninstall.sh -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/package.json -------------------------------------------------------------------------------- /src/cli/commands/add.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/add.js -------------------------------------------------------------------------------- /src/cli/commands/help.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/help.js -------------------------------------------------------------------------------- /src/cli/commands/install.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/install.js -------------------------------------------------------------------------------- /src/cli/commands/kill.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/kill.js -------------------------------------------------------------------------------- /src/cli/commands/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/list.js -------------------------------------------------------------------------------- /src/cli/commands/migrate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/migrate.js -------------------------------------------------------------------------------- /src/cli/commands/open.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/open.js -------------------------------------------------------------------------------- /src/cli/commands/rm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/rm.js -------------------------------------------------------------------------------- /src/cli/commands/start.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/start.js -------------------------------------------------------------------------------- /src/cli/commands/status.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/status.js -------------------------------------------------------------------------------- /src/cli/commands/stop.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/stop.js -------------------------------------------------------------------------------- /src/cli/commands/tail.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/tail.js -------------------------------------------------------------------------------- /src/cli/commands/uninstall.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/uninstall.js -------------------------------------------------------------------------------- /src/cli/commands/version.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/commands/version.js -------------------------------------------------------------------------------- /src/cli/doc/help.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/doc/help.txt -------------------------------------------------------------------------------- /src/cli/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/index.js -------------------------------------------------------------------------------- /src/cli/templates/katon.firewall.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/templates/katon.firewall.plist -------------------------------------------------------------------------------- /src/cli/templates/katon.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/templates/katon.plist -------------------------------------------------------------------------------- /src/cli/templates/resolver: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/templates/resolver -------------------------------------------------------------------------------- /src/cli/utils/launchctl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/utils/launchctl.js -------------------------------------------------------------------------------- /src/cli/utils/list-hosts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/utils/list-hosts.js -------------------------------------------------------------------------------- /src/cli/utils/osx-minor-version.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/utils/osx-minor-version.js -------------------------------------------------------------------------------- /src/cli/utils/path-to-host.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/utils/path-to-host.js -------------------------------------------------------------------------------- /src/cli/utils/render.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/cli/utils/render.js -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/config.js -------------------------------------------------------------------------------- /src/daemon/certs/server.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/certs/server.crt -------------------------------------------------------------------------------- /src/daemon/certs/server.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/certs/server.key -------------------------------------------------------------------------------- /src/daemon/control.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/control.js -------------------------------------------------------------------------------- /src/daemon/dns-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/dns-server.js -------------------------------------------------------------------------------- /src/daemon/http-router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/http-router.js -------------------------------------------------------------------------------- /src/daemon/https-proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/https-proxy.js -------------------------------------------------------------------------------- /src/daemon/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/index.js -------------------------------------------------------------------------------- /src/daemon/procs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/procs.js -------------------------------------------------------------------------------- /src/daemon/templates/200.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/templates/200.html -------------------------------------------------------------------------------- /src/daemon/templates/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/templates/404.html -------------------------------------------------------------------------------- /src/daemon/templates/502.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/templates/502.html -------------------------------------------------------------------------------- /src/daemon/templates/layout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/templates/layout.html -------------------------------------------------------------------------------- /src/daemon/utils/http-router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/utils/http-router.js -------------------------------------------------------------------------------- /src/daemon/utils/render.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/utils/render.js -------------------------------------------------------------------------------- /src/daemon/utils/tail.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/utils/tail.js -------------------------------------------------------------------------------- /src/daemon/utils/timer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/src/daemon/utils/timer.js -------------------------------------------------------------------------------- /test/cli/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/cli/index.js -------------------------------------------------------------------------------- /test/daemon/fixtures/node-slow/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/fixtures/node-slow/index.js -------------------------------------------------------------------------------- /test/daemon/fixtures/node/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/fixtures/node/index.js -------------------------------------------------------------------------------- /test/daemon/fixtures/python/index.html: -------------------------------------------------------------------------------- 1 | OK -------------------------------------------------------------------------------- /test/daemon/fixtures/subdomain.node/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/fixtures/subdomain.node/index.js -------------------------------------------------------------------------------- /test/daemon/fixtures/websocket/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/fixtures/websocket/client.js -------------------------------------------------------------------------------- /test/daemon/fixtures/websocket/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/fixtures/websocket/index.js -------------------------------------------------------------------------------- /test/daemon/helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/helper.js -------------------------------------------------------------------------------- /test/daemon/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/daemon/index.js -------------------------------------------------------------------------------- /test/setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typicode/katon/HEAD/test/setup.js --------------------------------------------------------------------------------