Giter Club home page Giter Club logo

laravel-echo-server's Introduction

Laravel Echo Server

Introduction

This is a simple docker container for the Laravel Echo Server.

Configuration

The container is configured to want to use Redis by default. Most configuration can be changed by setting the appropriate environment variables. If you want a more complex config, you can mount it into the container to /opt/laravel-echo-server/laravel-echo-server.json.

Environment Variables

The variables you can modify are:

  • LARAVEL_ECHO_SERVER_AUTH_HOST - The host of the server that authenticates private and presence channels
  • LARAVEL_ECHO_SERVER_HOST - The host of the server
  • LARAVEL_ECHO_SERVER_PORT - The port for the server
  • LARAVEL_ECHO_SERVER_DEBUG - Debug mode
  • ECHO_CLIENTS - JSON representing the clients for the server
  • ECHO_DEVMODE - Same as debug mode?

Running with SSL

The server supports either HTTP or HTTPS (not both simultaenously). If you want to use HTTPS, set the protocol appropriately and specify the certificate, key and any chain certificate using environment variables.

  • ECHO_PROTOCOL - http or https depending on what you want to use
  • ECHO_SSL_CERT_PATH - Path to an SSL certificate if using HTTPS
  • ECHO_SSL_KEY_PATH - Path to the private key for the SSL certificate
  • ECHO_SSL_CHAIN_PATH - Path to a chain certificate file
  • ECHO_SSL_PASSPHRASE - The passphrase for the private key if required

API Access

There is a simple HTTP API built in, cross-domain access can be configured using environment variables:

  • ECHO_ALLOW_CORS - true or false if you want to allow CORS or not
  • ECHO_ALLOW_ORIGIN - The allowed origin for cross-domain comms
  • ECHO_ALLOW_METHODS - HTTP methods that are allowed cross-domain
  • ECHO_ALLOW_HEADERS - The headers that will be accepted with CORS

laravel-echo-server's People

Contributors

mintopia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-echo-server's Issues

Guide on how to use or setup this with laravel project?

Hi, im pretty new to docker but i already have setup my laravel project on docker with redis and queue. do you have some guide on how to setup this with laravel ? i mean what should be on the docker-compose file? thanks!! I'll appreciate any response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.