Sign inSign up

optimistdigital/laravel-echo-server

By optimistdigital

Updated about 8 years ago

Socket.io server for Laravel Echo

Image
0

246

optimistdigital/laravel-echo-server repository overview

Laravel Echo Server

Docker image of Laravel Echo Server.

Usage

$ docker run --name redis -d redis
$ docker run -d \
    --name laravel-echo-server \
    --link redis:redis \
    -e "APP_URL=https://localhost" \
    optimistdigital/laravel-echo-server:latest
Environment variables
Environment variableDescriptionExample value
APP_URLThe base URL where the client app will be served fromhttps://www.example.com

Result

laravel-echo-server.json configuration file as Go template:

{
	"authHost": "{{.APP_URL}}",
	"authEndpoint": "/broadcasting/auth",
	"clients": [],
	"database": "redis",
	"databaseConfig": {
		"redis": {
			"host": "redis"
		}
	},
	"devMode": false,
	"host": null,
	"port": "6001",
	"protocol": "http",
	"socketio": {},
	"sslCertPath": "",
	"sslKeyPath": "",
	"sslCertChainPath": "",
	"sslPassphrase": "",
	"apiOriginAllow": {
		"allowCors": true,
		"allowOrigin": "{{.APP_URL}}",
		"allowMethods": "GET, POST",
		"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
	}
}

Tag summary

Content type

Image

Digest

Size

32.3 MB

Last updated

about 8 years ago

docker pull optimistdigital/laravel-echo-server