This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add monolog to composer.json in the "require" object: | |
"monolog/monolog": "@stable" | |
// THESE GO TO NGINX CONFIG app/dev/nginx/losofacebook under server | |
proxy_buffer_size 2048k; | |
proxy_buffers 4 2048k; | |
proxy_busy_buffers_size 2048k; | |
fastcgi_buffers 8 2048k; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gzip on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# odp | |
location ~* ^.+\.(odt|odp)$ { | |
access_log off; | |
gzip off; | |
expires 30d; | |
} | |
# non-zipped images | |
location ~* ^.+\.(jpg|jpeg|gif|png|ico)$ { | |
access_log off; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Losofacebook\Command; | |
use Knp\Command\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Finder\Finder; | |
use Keboola\Csv\CsvFile; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Losofacebook\Service; | |
use Doctrine\DBAL\Connection; | |
use Imagick; | |
use ImagickPixel; | |
use Symfony\Component\HttpFoundation\Response; | |
use Losofacebook\Image; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
use Memcached; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name static.losofacebook.tunk.io; | |
root /home/user/losofacebook/web; | |
charset utf-8; | |
gzip on; | |
gzip_disable "msie6"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default Gzip Configuration (Set Exceptions Per Location) | |
gzip on; | |
gzip_comp_level 1; | |
gzip_http_version 1.1; | |
gzip_vary On; | |
gzip_proxied any; | |
gzip_types text/plain text/css text/xml application/xml application/xml+rss application/xml+atom text/javascript application/x-javascript application/javascript application/json; | |
gzip_disable "MSIE [1-6]\."; | |
# non-zipped images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Dporssi\Janitor; | |
use Xi\Filelib\File\File; | |
use Xi\Filelib\IdentifiableDataContainer; | |
use Xi\Janitor\AbstractJanitor; | |
use Xi\Filelib\FileLibrary; | |
use Xi\Filelib\Publisher\Publisher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Xi\Filelib\Backend\Adapter\MongoBackendAdapter; | |
use Xi\Filelib\FileLibrary; | |
use Xi\Filelib\Profile\FileProfile; | |
use Xi\Filelib\Plugin\RandomizeNamePlugin; | |
use Xi\Filelib\Plugin\Image\VersionPlugin; | |
use Xi\Filelib\Publisher\Adapter\Filesystem\SymlinkFilesystemPublisherAdapter; | |
use Xi\Filelib\Storage\Adapter\FilesystemStorageAdapter; | |
use Xi\Filelib\Storage\Adapter\Filesystem\DirectoryIdCalculator\TimeDirectoryIdCalculator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xi_filelib: | |
queue_adapter_service: 'oy_main.service.queue_adapter' | |
# cache_adapter_service: 'oy_main.service.cache_adapter' | |
renderer: | |
enable_acceleration: %filelib_acceleration% | |
add_prefix: "/protected" | |
strip_prefix: "%filelib_strip_prefix%" |
OlderNewer