Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel echo server cannot run on https #2769

Closed
adiramardiani opened this issue Nov 9, 2020 · 2 comments
Closed

Laravel echo server cannot run on https #2769

adiramardiani opened this issue Nov 9, 2020 · 2 comments

Comments

@adiramardiani
Copy link

Description:

For all external link, all https recomended to use https version. I want to create laravel-echo-server (6001) to use https

I use this configuration

{
	"authHost": "localhost",
	"authEndpoint": "/broadcasting/auth",
	"clients": [],
	"database": "redis",
	"databaseConfig": {
		"redis": {
			"port": "6379",
			"host": "redis"
		}
	},
	"devMode": true,
	"host": null,
	"port": "6001",
	"protocol": "https",
	"socketio": {},
	"sslCertPath": "/etc/nginx/ssl/default.crt",
	"sslKeyPath": "/etc/nginx/ssl/default.key"
}
### Laravel Echo Server #######################################
    laravel-echo-server:
      build:
        context: ./laravel-echo-server
        args:
          - CHANGE_SOURCE=${CHANGE_SOURCE}
      volumes:
        - ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro
        - ${NGINX_SSL_PATH}:/etc/nginx/ssl
      ports:
        - "${LARAVEL_ECHO_SERVER_PORT}:6001"
      links:
        - redis
      networks:
        - frontend
        - backend

But my laravel-echo-server still use http protocol, I don't know what I miss, I'm new on laradock / docker

I have suggest to have sepparate configuration port like caddy

### CADDY #################################################

CADDY_HOST_HTTP_PORT=80
CADDY_HOST_HTTPS_PORT=443
CADDY_HOST_LOG_PATH=./logs/caddy
CADDY_CONFIG_PATH=./caddy/caddy

### LARAVEL ECHO SERVER ###################################

#LARAVEL_ECHO_SERVER_PORT=6001
LARAVEL_ECHO_SERVER_HTTP_PORT=6001
LARAVEL_ECHO_SERVER_HTTPS_PORT=1234
@stale
Copy link

stale bot commented Feb 7, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Feb 7, 2021
@stale
Copy link

stale bot commented Feb 28, 2021

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant