peteeeeeee
New Pleskian
- Server operating system version
- CentOS Linux 7.9.2009 Obsidian
- Plesk version and microupdate number
- Version 18.0.56 Update #4
I am using beyondcode/laravel-websockets and pusher/pusher-php-server to serve web socket with Laravel.
Additional nginx directives
	
	
	
		
I run /opt/plesk/php/8.1/bin/php artisan websockets:serve in ssh, it works fine, but in real work, shouldn't be executed manually like this.
May I know any best practices to serve the web socket in Plesk?
				
			Additional nginx directives
		NGINX:
	
	location /app/ {
    proxy_pass http://127.0.0.1:6001;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}I run /opt/plesk/php/8.1/bin/php artisan websockets:serve in ssh, it works fine, but in real work, shouldn't be executed manually like this.
May I know any best practices to serve the web socket in Plesk?
