Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- try_files $uri @rewriteapp;
- }
- location @rewriteapp {
- rewrite ^(.*)$ /app.php/$1 last;
- }
- location ~ ^/app.php(/|$) {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- fastcgi_split_path_info ^(.+.php)(/.*)$;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- fastcgi_param DOCUMENT_ROOT $realpath_root;
- internal;
- }
- location ~ .(png|jpeg|jpg|gif)$ {
- if (-f $request_filename) {
- expires 18h;
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- access_log off;
- }
- try_files $uri @rewriteapp;
- }
- liip_imagine:
- resolvers:
- default:
- web_path:
- web_root: "%kernel.root_dir%/../web"
- cache_prefix: "media/cache"
- filter_sets:
- cache: ~
- slide:
- quality: 80
- filters:
- thumbnail: { size: [364, 244]}
- watermark:
- image: Resources/data/logo.png
- size: 0.2
- position: bottomleft
- <img src="{{ asset( 'bundles/app/uploads/' ~ image.id ~ '/' ~ image.file ) | imagine_filter('slide') }}" />
- drwxrwxrwx+ 3 root root 4096 Aug 15 19:05 media
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement