Fork expose

This commit is contained in:
René Preuß
2022-07-07 22:27:23 +02:00
parent da82980286
commit 814eb964d5
11 changed files with 21 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ use Symfony\Component\Console\Output\ConsoleOutput;
abstract class ServerAwareCommand extends Command abstract class ServerAwareCommand extends Command
{ {
const DEFAULT_HOSTNAME = 'sharedwithexpose.com'; const DEFAULT_HOSTNAME = 'bitinflow.dev';
const DEFAULT_PORT = 443; const DEFAULT_PORT = 443;
const DEFAULT_SERVER_ENDPOINT = 'https://expose.dev/api/servers'; const DEFAULT_SERVER_ENDPOINT = 'https://expose.dev/api/servers';
@@ -45,7 +45,7 @@ abstract class ServerAwareCommand extends Command
/** /**
* Try to find the server in the servers array. * Try to find the server in the servers array.
* If no array exists at all (when upgrading from v1), * If no array exists at all (when upgrading from v1),
* always return sharedwithexpose.com. * always return bitinflow.dev.
*/ */
if (config('expose.servers') === null) { if (config('expose.servers') === null) {
return static::DEFAULT_HOSTNAME; return static::DEFAULT_HOSTNAME;
@@ -70,7 +70,7 @@ abstract class ServerAwareCommand extends Command
/** /**
* Try to find the server in the servers array. * Try to find the server in the servers array.
* If no array exists at all (when upgrading from v1), * If no array exists at all (when upgrading from v1),
* always return sharedwithexpose.com. * always return bitinflow.dev.
*/ */
if (config('expose.servers') === null) { if (config('expose.servers') === null) {
return static::DEFAULT_PORT; return static::DEFAULT_PORT;

2
builds/.gitignore vendored
View File

@@ -1,2 +0,0 @@
!.gitignore
*

Binary file not shown.

View File

@@ -1,5 +1,5 @@
{ {
"name": "beyondcode/expose", "name": "bitinflow/expose",
"type": "project", "type": "project",
"description": "Create public URLs for local sites through any firewall and VPN.", "description": "Create public URLs for local sites through any firewall and VPN.",
"keywords": [ "keywords": [
@@ -7,9 +7,13 @@
"tunnel", "tunnel",
"ngrok" "ngrok"
], ],
"homepage": "https://sharedwithexpose.com", "homepage": "https://bitinflow.dev",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{
"name": "René Preuß",
"email": "rene@bitinflow.com"
},
{ {
"name": "Marcel Pociot", "name": "Marcel Pociot",
"email": "marcel@beyondco.de" "email": "marcel@beyondco.de"

View File

@@ -13,7 +13,7 @@ return [
| |
*/ */
'default' => \App\Commands\ShareCurrentWorkingDirectoryCommand::class, 'default' => NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@@ -13,8 +13,8 @@ return [
| |
*/ */
'servers' => [ 'servers' => [
'main' => [ 'free' => [
'host' => 'sharedwithexpose.com', 'host' => 'bitinflow.dev',
'port' => 443, 'port' => 443,
], ],
], ],
@@ -32,7 +32,7 @@ return [
| if available. | if available.
| |
*/ */
'server_endpoint' => 'https://expose.dev/api/servers', 'server_endpoint' => 'https://bitinflow.dev/api/servers',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -43,7 +43,7 @@ return [
| or the servers endpoint above. | or the servers endpoint above.
| |
*/ */
'default_server' => 'main', 'default_server' => 'free',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@@ -16,7 +16,7 @@ The result looks like this:
```json ```json
{ {
"configuration":{ "configuration":{
"hostname": "sharedwithexpose.com", "hostname": "bitinflow.dev",
"port": 8080, "port": 8080,
"database": "/home/forge/expose/database/expose.db", "database": "/home/forge/expose/database/expose.db",
"validate_auth_tokens": false, "validate_auth_tokens": false,

View File

@@ -34,12 +34,12 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| The expose server to connect to. By default, expose is using the free | The expose server to connect to. By default, expose is using the free
| sharedwithexpose.com server, offered by Beyond Code. You will need a free | bitinflow.dev server, offered by Beyond Code. You will need a free
| Beyond Code account in order to authenticate with the server. | Beyond Code account in order to authenticate with the server.
| Feel free to host your own server and change this value. | Feel free to host your own server and change this value.
| |
*/ */
'host' => 'sharedwithexpose.com', 'host' => 'bitinflow.dev',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@@ -28,6 +28,6 @@ expose share https://my-local-site.dev
## Custom Subdomains ::pro ## Custom Subdomains ::pro
To make your life easier, Expose tries to share your local URLs using custom subdomains. This allows you to share your local URL `my-local-site.dev` as `my-local-site.us-1.sharedwithexpose.com`. To make your life easier, Expose tries to share your local URLs using custom subdomains. This allows you to share your local URL `my-local-site.dev` as `my-local-site.us-1.bitinflow.dev`.
By default, Expose uses a slugified version of the URL that you want to share, but you can also [choose your own custom subdomain](/docs/client/sharing#share-a-local-site-with-a-given-subdomain). By default, Expose uses a slugified version of the URL that you want to share, but you can also [choose your own custom subdomain](/docs/client/sharing#share-a-local-site-with-a-given-subdomain).

View File

@@ -38,6 +38,6 @@ Expose 1.0 was limited to one server that it could connect to. In case of our fr
### White-Label Domain support ### White-Label Domain support
The 2.0 update of Expose finally allows you to register a custom white-label domain on the Expose servers, allowing you to use your own custom domain with the Expose service. This means that you no longer have to share `*.sharedwithexpose.com` URLs with your colleagues and clients, but you can now register your own domain and use that instead. All it takes is a simple CNAME DNS entry and you're ready to go! The 2.0 update of Expose finally allows you to register a custom white-label domain on the Expose servers, allowing you to use your own custom domain with the Expose service. This means that you no longer have to share `*.bitinflow.dev` URLs with your colleagues and clients, but you can now register your own domain and use that instead. All it takes is a simple CNAME DNS entry and you're ready to go!
White label domains get TLS/SSL certificates on the first connect to a URL automatically. This process takes a few seconds so that first page load can take a moment or even fail try again after a few seconds and all additional requests will be fast until the certificate expires. Re-using the same (sub-)domain makes sure that your certificate stays available. White label domains get TLS/SSL certificates on the first connect to a URL automatically. This process takes a few seconds so that first page load can take a moment or even fail try again after a few seconds and all additional requests will be fast until the certificate expires. Re-using the same (sub-)domain makes sure that your certificate stays available.

View File

@@ -98,7 +98,7 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| The expose server to connect to. By default, expose is using the free | The expose server to connect to. By default, expose is using the free
| sharedwithexpose.com server, offered by Beyond Code. You will need a free | bitinflow.dev server, offered by Beyond Code. You will need a free
| Beyond Code account in order to authenticate with the server. | Beyond Code account in order to authenticate with the server.
| Feel free to host your own server and change this value. | Feel free to host your own server and change this value.
| |