]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
default dispatcher conf
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Tue, 2 Feb 2016 13:35:39 +0000 (14:35 +0100)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Tue, 2 Feb 2016 13:35:39 +0000 (14:35 +0100)
classes/aem::dispatcher.yaml

index 9e55298c78a7630335b7a5b682e8e17f0066b1da..f92abcbb05eb0d6363cca1b51393eff7dbec679a 100644 (file)
@@ -5,13 +5,33 @@ aem::dispatcher::publish_farm:
       - { hostname: "127.0.0.1", port: '4503' }
     filters:
       - { type: 'deny', glob: '*' }
-      - { type: allow', url: '*.css'   }  # enable css
-      - { type: allow', url: '*.gif'   }  # enable gifs
-      - { type: allow', url: '*.ico'   }  # enable icos
-      - { type: allow', url: '*.js'    }  # enable javascript
-      - { type: allow', url: '*.png'   }  # enable png
-      - { type: allow', url: '*.swf'   }  # enable flash
-      - { type: allow', url: '*.jpg'   }  # enable jpg
-      - { type: allow', url: '*.jpeg'  }  # enable jpeg
+      - { type: 'allow', url: '*.css'   }  # enable css
+      - { type: 'allow', url: '*.gif'   }  # enable gifs
+      - { type: 'allow', url: '*.ico'   }  # enable icos
+      - { type: 'allow', url: '*.js'    }  # enable javascript
+      - { type: 'allow', url: '*.png'   }  # enable png
+      - { type: 'allow', url: '*.swf'   }  # enable flash
+      - { type: 'allow', url: '*.jpg'   }  # enable jpg
+      - { type: 'allow', url: '*.jpeg'  }  # enable jpeg
+      # Enable features 
+      - { type: 'allow', url: '/libs/cq/personalization/*' } # enable personalization
+      # Deny content grabbing
+      - { type: 'deny', url: '*.infinity.json' }
+      - { type: 'deny', url: '*.tidy.json'     }
+      - { type: 'deny', url: '*.sysview.xml'   }
+      - { type: 'deny', url: '*.docview.json'  }
+      - { type: 'deny', url: '*.docview.xml'   }
+      - { type: 'deny', url: '*.*[0-9].json'   }
+      # Deny query
+      - { type: 'deny', url: '*.query.json' }
     cache_docroot: '/var/www/html/cache'
-    
\ No newline at end of file
+    cache_rules:
+      - { type: 'allow', glob: '*' }
+    cache_invalidate:
+      - { type: 'deny', glob: '*' }
+      - { type: 'allow', glob: '*.html' }
+      - { type: 'allow', glob: '/etc/segmentation.segment.js' }
+      - { type: 'allow', glob: '*/analytics.sitecatalyst.js' }
+    cache_allowedClients:
+      - { type: 'deny', glob: '*' }
+      - { type: 'allow', glob: '127.0.0.1' }
\ No newline at end of file