Skip to content

Commit

Permalink
Feat: Rebrand (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolaszek authored Jan 16, 2022
1 parent 976e8b8 commit 444de73
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ See what features are covered and what aren't (yet) [here](#feature-coverage).
PHP 8.1 is required to run the hub.

```bash
composer create-project freddie/mercure-x:"~0.1" freddie
composer create-project freddie/mercure-x:"~0.2" freddie
cd freddie
```

## Usage

```bash
./bin/mercure
./bin/freddie
```

It will start a new Mercure hub on `127.0.0.1:8080`.
To change this address, use the `X_LISTEN` environment variable:

```bash
X_LISTEN="0.0.0.0:8000" ./bin/mercure
X_LISTEN="0.0.0.0:8000" ./bin/freddie
```

The default JWT key is `!ChangeMe!` with a `HS256` signature.
Expand All @@ -56,7 +56,7 @@ because of concurrency restrictions on the _bolt_ transport.
To launch the hub with the Redis transport, change the `TRANSPORT_DSN` environment variable:

```bash
TRANSPORT_DSN="redis://127.0.0.1:6379" ./bin/mercure
TRANSPORT_DSN="redis://127.0.0.1:6379" ./bin/freddie
```

_Alternatively, you can set this variable into `.env.local`._
Expand All @@ -68,7 +68,7 @@ This implementation does not provide SSL nor HTTP2 termination, so you'd better
### Example Nginx configuration

```nginx
upstream mercure {
upstream freddie {
# Example with a single node
server 127.0.0.1:8080;
Expand All @@ -93,7 +93,7 @@ server {
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
location /.well-known/mercure {
proxy_pass http://mercure;
proxy_pass http://freddie;
proxy_read_timeout 24h;
proxy_http_version 1.1;
proxy_set_header Connection "";
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,18 @@
"Freddie\\Tests\\": "tests"
}
},
"bin": ["bin/freddie"],
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*"
},
"scripts": {
"post-install-cmd": [
"bin/mercure cache:clear"
"bin/freddie cache:clear"
],
"post-update-cmd": [
"bin/mercure cache:clear"
"bin/freddie cache:clear"
],
"phpstan:analyze": "vendor/bin/phpstan analyse",
"linter:check": "vendor/bin/phpcs",
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/HubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$env[$key] = $_ENV[$key];
}
$endpoint = sprintf('http://%s/.well-known/mercure', $env['X_LISTEN']);
$process = new Process(['bin/mercure',], dirname(__DIR__, 2), $env);
$process = new Process(['bin/freddie',], dirname(__DIR__, 2), $env);
$process->start();

usleep(1500000); // Wait for process to actually start
Expand Down

0 comments on commit 444de73

Please sign in to comment.