Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Dashboard in Production? #22

Closed
irazasyed opened this issue Dec 6, 2018 · 10 comments
Closed

Dashboard in Production? #22

irazasyed opened this issue Dec 6, 2018 · 10 comments

Comments

@irazasyed
Copy link
Contributor

irazasyed commented Dec 6, 2018

I'm trying to run the dashboard in production and limit its access to specific users but it looks like the $user var in Gate's definition is always null for some reason.

How can I run it with limited access to specific users?

P.S. I used the same code as in the docs. It appears there is no auth info in the request payload when the dashboard is running.

@mpociot
Copy link
Member

mpociot commented Dec 6, 2018

That’s probably because the middleware used for the dashboard is not configurable yet.
I suggest that we make the middleware configurable, similar to how Laravel Telescope handles this.

@irazasyed
Copy link
Contributor Author

@mpociot Yes, That would be great if we can do this. Telescope or Horizon both work well with this config and I'm using their dashboards in production as well. So would love to integrate the same for this package as well.

@freekmurze This could've very well been marked as feature-request/bug. Not sure why you'd close it without any reason unless you don't want people to run this in production? You should update the docs if that's the case.

@divdax
Copy link

divdax commented Dec 12, 2018

Same problem here. Dashboard not running in production. User is null.

@vesper8
Copy link

vesper8 commented Dec 13, 2018

@mpociot could you please merge #28 ?

We badly need to be able to access the dashboard in production and can't because of this

Thanks!

mpociot pushed a commit that referenced this issue Dec 17, 2018
…any app (#39)

* Add the ability to configure middleware.

Fixes #22

* Fix StyleCI Error.

* Include X-App-ID

* Reconstruct the PusherBroadcaster

* fix styleci

* change from overwriting constructor to new Broadcaster

* optional  inside dashboard gate

* remove comment

* fix for styleci

* Fix typo

* Removed unused $config['options']
@wasitmirani
Copy link

how can i use laravel-websockets on cpanel or other hosting platforms

@rennokki
Copy link
Collaborator

Shared hosting is by far the worst environment to make WebSockets work.

Duplicate of #460

@lionslair lionslair mentioned this issue Aug 28, 2020
14 tasks
@wasitmirani
Copy link

ok bro i can deploy digital ocean or Heroku suitable for my application

@rennokki
Copy link
Collaborator

rennokki commented Sep 2, 2020

DigitalOcean is fine. You can deploy your app using Laravel Forge for example.

@mrABR
Copy link

mrABR commented Apr 9, 2021

Is it possible to disable the dashboard?

@dellert
Copy link

dellert commented Jan 12, 2022

Is it possible to disable the dashboard?

+++

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants