You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,16 @@
1
+
# 1.3.7
2
+
3
+
Allow variables in .env file to set options in the server configuration.
4
+
5
+
### Updates
6
+
- Auth Host: `LARAVEL_ECHO_SERVER_AUTH_HOST`*Note*: This option will fall back to the `LARAVEL_ECHO_SERVER_HOST` option as the default if that is set in the .env file.
7
+
8
+
-*Host*: `LARAVEL_ECHO_SERVER_HOST`
9
+
10
+
-*Port*: `LARAVEL_ECHO_SERVER_PORT`
11
+
12
+
-*Debug*: `LARAVEL_ECHO_SERVER_DEBUG`
13
+
1
14
# 1.3.3
2
15
3
16
Return a better error when member data is not present when joining presence channels.
Copy file name to clipboardExpand all lines: README.md
+20-3
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Laravel Echo Server
1
+
# Laravel Echo Server
2
2
3
3
NodeJs server for Laravel Echo broadcasting with Socket.io.
4
4
@@ -75,7 +75,7 @@ Edit the default configuration of the server by adding options to your **laravel
75
75
|`authEndpoint`|`/broadcasting/auth`| The route that authenticates private channels |
76
76
|`authHost`|`http://localhost`| The host of the server that authenticates private and presence channels |
77
77
|`database`|`redis`| Database used to store data that should persist, like presence channel members. Options are currently `redis` and `sqlite`|
78
-
|`databaseConfig`|`{}`| Configurations for the different database drivers [Example](#database)|
78
+
|`databaseConfig`|`{}`| Configurations for the different database drivers [Example](#database)|
79
79
|`host`|`null`| The host of the socket.io server ex.`app.dev`. `null` will accept connections on any IP-address |
80
80
|`port`|`6001`| The port that the socket.io server should run on |
81
81
|`protocol`|`http`| either `http` or `https`|
@@ -84,7 +84,20 @@ Edit the default configuration of the server by adding options to your **laravel
84
84
|`sslCertChainPath`|`''`| The path to your server's ssl certificate chain |
85
85
|`sslPassphrase`|`''`| The pass phrase to use for the certificate (if applicable) |
86
86
|`socketio`|`{}`| Options to pass to the socket.io instance ([available options](https://github.com/socketio/engine.io#methods-1)) |
87
-
|`apiOriginAllow`|`{}`| Configuration to allow API be accessed over CORS. [Example](#cross-domain-access-to-api)|
87
+
|`apiOriginAllow`|`{}`| Configuration to allow API be accessed over CORS. [Example](#cross-domain-access-to-api)|
88
+
89
+
### DotEnv
90
+
If a .env file is found in the same directory as the laravel-echo-server.json
91
+
file, the following options can be overridden:
92
+
93
+
- Auth Host: `LARAVEL_ECHO_SERVER_AUTH_HOST`*Note*: This option will fall back to the `LARAVEL_ECHO_SERVER_HOST` option as the default if that is set in the .env file.
94
+
95
+
-*Host*: `LARAVEL_ECHO_SERVER_HOST`
96
+
97
+
-*Port*: `LARAVEL_ECHO_SERVER_PORT`
98
+
99
+
-*Debug*: `LARAVEL_ECHO_SERVER_DEBUG`
100
+
88
101
89
102
### Running with SSL
90
103
@@ -94,6 +107,9 @@ Edit the default configuration of the server by adding options to your **laravel
94
107
95
108
*Note: This library currently only supports serving from either http or https, not both.*
96
109
110
+
### Setting the working directory
111
+
The working directory in which `laravel-echo-server` will look for the configuration file `laravel-echo-server.json` can be passed to the `start` command through the `--dir` parameter like so: `laravel-echo-server start --dir=/var/www/html/example.com/configuration`
112
+
97
113
## Subscribers
98
114
The Laravel Echo Server subscribes to incoming events with two methods: Redis & Http.
99
115
@@ -146,6 +162,7 @@ The HTTP subscriber is compatible with the Laravel Pusher subscriber. Just confi
0 commit comments