Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 7476914

Browse files
committed
Updated some docs.
1 parent a532084 commit 7476914

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#1.5.0
2+
3+
Add `stop` command
4+
15
# 1.3.7
26

37
Allow variables in .env file to set options in the server configuration.

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ in your project root directory, run
6565
$ laravel-echo-server start
6666
```
6767

68+
#### Stop The Server
69+
70+
in your project root directory, run
71+
72+
``` shell
73+
$ laravel-echo-server stop
74+
```
75+
6876
### Configurable Options
6977

7078
Edit the default configuration of the server by adding options to your **laravel-echo-server.json** file.
@@ -107,7 +115,7 @@ file, the following options can be overridden:
107115
*Note: This library currently only supports serving from either http or https, not both.*
108116

109117
#### Alternative SSL implementation
110-
If you are struggling to get SSL implemented with this package, you could look at using a proxy module within Apache or NginX. Essentially, instead of connecting your websocket traffic to https://yourserver.dev:6001/socket.io?..... and trying to secure it, you can connect your websocket traffic to https://yourserver.dev/socket.io. Behind the scenes, the proxy module of Apache or NginX will be configured to intercept requests for /socket.io, and internally redirect those to your echo server over non-ssl on port 6001. This keeps all of the traffic encrypted between browser and web server, as your web server will still do the SSL encryption/decryption. The only thing that is left unsecured is the traffic between your webserver and your Echo server, which might be acceptable in many cases.
118+
If you are struggling to get SSL implemented with this package, you could look at using a proxy module within Apache or NginX. Essentially, instead of connecting your websocket traffic to https://yourserver.dev:6001/socket.io?..... and trying to secure it, you can connect your websocket traffic to https://yourserver.dev/socket.io. Behind the scenes, the proxy module of Apache or NginX will be configured to intercept requests for /socket.io, and internally redirect those to your echo server over non-ssl on port 6001. This keeps all of the traffic encrypted between browser and web server, as your web server will still do the SSL encryption/decryption. The only thing that is left unsecured is the traffic between your webserver and your Echo server, which might be acceptable in many cases.
111119
##### Sample NginX proxy config
112120
```
113121
#the following would go within the server{} block of your web server config

0 commit comments

Comments
 (0)