mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
40 lines
727 B
Markdown
40 lines
727 B
Markdown
# 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"
|
|
```
|