Skip to content

Instantly share code, notes, and snippets.

View gazben's full-sized avatar

Gazder Bence gazben

View GitHub Profile
@gazben
gazben / laravel laravel-echo laravel-echo-server private channel authentication problems Common Problems faced while setting up private channels with laravel-echo & laravel-echo-server.
I'll start with the basics and proceed to addressing the common problems
faced while setting up private channels with laravel-echo & laravel-echo-server.
If you are getting these errors while setup; 401, 403, 419 etc, as I did in my experience.
this gist will help you fix these errors.
Although this gist addresses common problems of laravel-echo-server setup, some problems are similar with Pusher setup.
So it might also be useful if you're having problems with setting up Pusher with Echo.
I'll try to cover eveything and try to use appropriate highlighting to single out each common problem.
@gazben
gazben / S3MultiRegionServiceProvider.php
Created March 20, 2020 17:09
Laravel S3 multi region filesystem driver
<?php
namespace App\Providers;
use Illuminate\Support\Arr;
use Aws\S3\S3MultiRegionClient;
use League\Flysystem\Filesystem;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
@gazben
gazben / ngnix_default.conf
Created April 3, 2019 22:22
Minio nginx static site reverse proxy
server {
error_page 400 401 402 403 404 405 500 501 502 503 504 @index;
proxy_intercept_errors on;
location = / {
proxy_buffering off;
index index.html index.htm;
proxy_set_header Host $http_host;
index /index.html;
proxy_pass http://minio:9000/$http_host/index.html;