Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. location / {
  2. try_files $uri @rewriteapp;
  3. }
  4.  
  5. location @rewriteapp {
  6. rewrite ^(.*)$ /app.php/$1 last;
  7. }
  8.  
  9. location ~ ^/app.php(/|$) {
  10.  
  11. include snippets/fastcgi-php.conf;
  12. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  13. fastcgi_split_path_info ^(.+.php)(/.*)$;
  14. include fastcgi_params;
  15. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  16. fastcgi_param DOCUMENT_ROOT $realpath_root;
  17. internal;
  18. }
  19.  
  20. location ~ .(png|jpeg|jpg|gif)$ {
  21. if (-f $request_filename) {
  22. expires 18h;
  23. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  24. access_log off;
  25. }
  26.  
  27. try_files $uri @rewriteapp;
  28. }
  29.  
  30. liip_imagine:
  31. resolvers:
  32. default:
  33. web_path:
  34. web_root: "%kernel.root_dir%/../web"
  35. cache_prefix: "media/cache"
  36.  
  37.  
  38. filter_sets:
  39. cache: ~
  40.  
  41. slide:
  42. quality: 80
  43. filters:
  44. thumbnail: { size: [364, 244]}
  45. watermark:
  46. image: Resources/data/logo.png
  47. size: 0.2
  48. position: bottomleft
  49.  
  50. <img src="{{ asset( 'bundles/app/uploads/' ~ image.id ~ '/' ~ image.file ) | imagine_filter('slide') }}" />
  51.  
  52. drwxrwxrwx+ 3 root root 4096 Aug 15 19:05 media
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement