From 8cda0a62eec12c5cfdcf41903be7c6e081d55665 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Sun, 14 Jun 2020 22:19:42 +0200 Subject: [PATCH] wip --- README.md | 38 ----------------------------------- app/Commands/ServeCommand.php | 2 +- app/Commands/ShareCommand.php | 2 +- composer.json | 4 ++-- 4 files changed, 4 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 64db8ed..f12a6c6 100644 --- a/README.md +++ b/README.md @@ -1,39 +1 @@ # Expose - -## Usage - -## Server - -To start the server, call: - -``` -php expose serve -``` - -## Client - -To share local connections with a server, call: - -``` -php expose share somelocalsite.test -``` - -### Custom subdomain(s) -You can also define a custom subdomain using the `--subdomain` option: - -``` -php expose share somelocalsite.test --subdomain=custom -``` - -The subdomain option also allows you to specify multiple, comma-separated subdomains: - -``` -php expose share somelocalsite.test --subdomain=app,admin -``` - -### Basic authentication -You can protect your shared URLs using basic authentication, by providing the username and password in the `--auth` option: - -``` -php expose share somelocalsite.test --auth="username:password" -``` diff --git a/app/Commands/ServeCommand.php b/app/Commands/ServeCommand.php index a6ba674..1a73cf3 100644 --- a/app/Commands/ServeCommand.php +++ b/app/Commands/ServeCommand.php @@ -10,7 +10,7 @@ class ServeCommand extends Command { protected $signature = 'serve {hostname=localhost} {host=0.0.0.0} {--validateAuthTokens} {--port=8080}'; - protected $description = 'Start the shaft server'; + protected $description = 'Start the expose server'; public function handle() { diff --git a/app/Commands/ShareCommand.php b/app/Commands/ShareCommand.php index f59afc7..69bcb29 100644 --- a/app/Commands/ShareCommand.php +++ b/app/Commands/ShareCommand.php @@ -13,7 +13,7 @@ class ShareCommand extends Command { protected $signature = 'share {host} {--subdomain=} {--auth=}'; - protected $description = 'Share a local url with a remote shaft server'; + protected $description = 'Share a local url with a remote expose server'; protected function configureConnectionLogger() { diff --git a/composer.json b/composer.json index ab5e529..b175436 100644 --- a/composer.json +++ b/composer.json @@ -19,10 +19,10 @@ ], "require": { "php": "^7.2.5", - "ext-json": "*", - "nikic/php-parser": "^4.4" + "ext-json": "*" }, "require-dev": { + "nikic/php-parser": "^4.4", "cboden/ratchet": "^0.4.2", "clue/block-react": "^1.3", "clue/buzz-react": "^2.7",