mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Improve docs
This commit is contained in:
@@ -7,11 +7,11 @@ order: 1
|
||||
|
||||
Expose allows you to share any kind of HTTP/HTTPS traffic for websites that you can reach on your own computer, with anyone on the internet.
|
||||
|
||||
There are multiple different ways on how you can initiate the site sharing with Expose.
|
||||
There are multiple ways to share a site with Expose.
|
||||
|
||||
## Sharing the current working directory
|
||||
|
||||
To share the current working directory with expose, all you need to do is go into the directory and call `expose`.
|
||||
To share the current working directory with Expose, all you need to do is go into the directory and call `expose`.
|
||||
|
||||
This makes the assumption that you have access to the current working directory name as a domain with the `.test` TLD.
|
||||
|
||||
@@ -48,8 +48,7 @@ expose share https://my-local-site.dev
|
||||
|
||||
## Share a local site with a given subdomain
|
||||
|
||||
You can also share one of your local sites explicitly and specify which exact subdomain you want Expose to use when sharing the site.
|
||||
This works similar to the paid offerings of Ngrok - but you can use it with your own custom server.
|
||||
You can also share one of your local sites explicitly and specify the exact subdomain that you want to use when sharing the site. This is very useful if you are testing webhooks and want to use the same webhook configuration and don't update the webhook endpoints on every Expose connect. Custom subdomains require an own Expose server in your infrastructure or Expose Pro.
|
||||
|
||||
To specify the subdomain, pass the `--subdomain` option to expose:
|
||||
|
||||
@@ -57,4 +56,4 @@ To specify the subdomain, pass the `--subdomain` option to expose:
|
||||
expose share my-site.test --subdomain=my-site
|
||||
```
|
||||
|
||||
If the chosen subdomain is already taken on the Expose server, you will see an error message and the connection to the Expose server gets closed.
|
||||
If someone already uses the chosen subdomain on the Expose server, you will see an error message and the Expose server closes the connection.
|
||||
|
||||
Reference in New Issue
Block a user