Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
league /
glide /
docs /
0.3 /
config /
Delete
Unzip
Name
Size
Permission
Date
Action
base-url.md
1005
B
-rw-r--r--
2020-11-05 09:00
basic-usage.md
1.47
KB
-rw-r--r--
2020-11-05 09:00
image-driver.md
406
B
-rw-r--r--
2020-11-05 09:00
max-image-size.md
621
B
-rw-r--r--
2020-11-05 09:00
secure-images.md
1.5
KB
-rw-r--r--
2020-11-05 09:00
source-and-cache.md
1.79
KB
-rw-r--r--
2020-11-05 09:00
the-server.md
2.03
KB
-rw-r--r--
2020-11-05 09:00
Save
Rename
--- layout: default title: The server --- # The server All the Glide configuration is managed through a central object called the `Server`. This includes the image [source location](/config/source-and-cache/) (where the original images are saved), the image [cache location](/config/source-and-cache/) (where the manipulated images are saved), the image manipulation API as well as any configuration options. ## Setup with factory The easiest way to configure the `Server` is using the supplied factory. ~~~ php <?php $server = League\Glide\ServerFactory::create([ 'source' => 'path/to/source/folder', 'cache' => 'path/to/cache/folder', ]); ~~~ ## Setup manually You can also choose to instantiate the `Server` object manually. This allows finer control over what dependencies are being used. For example, if you wanted to add additional functionality to the API, you could load custom manipulators in addition to those provided with Glide. ~~~ php <?php // Set image source $source = new League\Flysystem\Filesystem( new League\Flysystem\Adapter\Local('path/to/source/folder') ); // Set image cache $cache = new League\Flysystem\Filesystem( new League\Flysystem\Adapter\Local('path/to/cache/folder') ); // Set image manager $imageManager = new Intervention\Image\ImageManager([ 'driver' => 'imagick', ]); // Set manipulators $manipulators = [ new League\Glide\Api\Manipulator\Orientation(), new League\Glide\Api\Manipulator\Rectangle(), new League\Glide\Api\Manipulator\Size(2000*2000), new League\Glide\Api\Manipulator\Brightness(), new League\Glide\Api\Manipulator\Contrast(), new League\Glide\Api\Manipulator\Gamma(), new League\Glide\Api\Manipulator\Sharpen(), new League\Glide\Api\Manipulator\Filter(), new League\Glide\Api\Manipulator\Blur(), new League\Glide\Api\Manipulator\Pixelate(), new League\Glide\Api\Manipulator\Output(), ]; // Set API $api = new League\Glide\Api\Api($imageManager, $manipulators); // Setup Glide server $server = new League\Glide\Server($source, $cache, $api); ~~~