| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<config>
|
| 3 |
<!-- Sources -->
|
| 4 |
<sources>
|
| 5 |
<source name="drupal" scanPath="/htdocs/drupal" documentRoot="/htdocs" basePath="/drupal/" />
|
| 6 |
</sources>
|
| 7 |
|
| 8 |
<!-- Servers -->
|
| 9 |
<servers>
|
| 10 |
<server name="origin pull cdn" transporter="symlink_or_copy">
|
| 11 |
<location>/htdocs/static.example.com</location>
|
| 12 |
<url>http://localhost/static.example.com/</url>
|
| 13 |
</server>
|
| 14 |
<server name="ftp push cdn" transporter="ftp" maxConnections="5">
|
| 15 |
<host>localhost</host>
|
| 16 |
<username>daemontest</username>
|
| 17 |
<password>daemontest</password>
|
| 18 |
<url>http://localhost/daemontest/</url>
|
| 19 |
</server>
|
| 20 |
</servers>
|
| 21 |
|
| 22 |
<!-- Rules -->
|
| 23 |
<rules>
|
| 24 |
<!--
|
| 25 |
Add all JavasSript, CSS, image and flash files from the most common
|
| 26 |
directories in Drupal. Don't forget to add your site-specific directories!
|
| 27 |
-->
|
| 28 |
<rule for="drupal" label="JS, CSS, images, fonts and Flash">
|
| 29 |
<filter>
|
| 30 |
<paths>misc:profiles:modules:themes:sites/all:sites/default:sites/YOURSITE.COM</paths>
|
| 31 |
<extensions>ico:js:css:gif:png:jpg:jpeg:svg:otf:ttf:swf</extensions>
|
| 32 |
<ignoredDirs>CVS:.svn</ignoredDirs>
|
| 33 |
</filter>
|
| 34 |
<processorChain>
|
| 35 |
<processor name="image_optimizer.KeepFilename" />
|
| 36 |
<processor name="yui_compressor.YUICompressor" />
|
| 37 |
<processor name="link_updater.CSSURLUpdater" />
|
| 38 |
<processor name="unique_filename.Mtime" />
|
| 39 |
</processorChain>
|
| 40 |
<destinations>
|
| 41 |
<destination server="ftp push cdn" path="static" />
|
| 42 |
</destinations>
|
| 43 |
</rule>
|
| 44 |
|
| 45 |
<!--
|
| 46 |
Add all files in the files/css directory, *but* update the URLs in the
|
| 47 |
files. This is only necessary if we use CSS aggregation.
|
| 48 |
-->
|
| 49 |
<rule for="drupal" label="CSS aggregation">
|
| 50 |
<filter>
|
| 51 |
<paths>sites/default/files/css</paths>
|
| 52 |
<ignoredDirs>CVS:.svn</ignoredDirs>
|
| 53 |
</filter>
|
| 54 |
<processorChain>
|
| 55 |
<processor name="yui_compressor.YUICompressor" />
|
| 56 |
<processor name="link_updater.CSSURLUpdater" />
|
| 57 |
<processor name="unique_filename.Mtime" />
|
| 58 |
</processorChain>
|
| 59 |
<destinations>
|
| 60 |
<destination server="ftp push cdn" path="static" />
|
| 61 |
</destinations>
|
| 62 |
</rule>
|
| 63 |
|
| 64 |
<!--
|
| 65 |
Add all files in the files/js directory. This is only necessary if we use
|
| 66 |
JS aggregation.
|
| 67 |
-->
|
| 68 |
<rule for="drupal" label="JS aggregation">
|
| 69 |
<filter>
|
| 70 |
<paths>sites/default/files/js</paths>
|
| 71 |
<ignoredDirs>CVS:.svn</ignoredDirs>
|
| 72 |
</filter>
|
| 73 |
<processorChain>
|
| 74 |
<processor name="yui_compressor.YUICompressor" />
|
| 75 |
<processor name="unique_filename.Mtime" />
|
| 76 |
</processorChain>
|
| 77 |
<destinations>
|
| 78 |
<destination server="ftp push cdn" path="static" />
|
| 79 |
</destinations>
|
| 80 |
</rule>
|
| 81 |
</rules>
|
| 82 |
</config>
|