]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
sirona-aem - apache performence tuning
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Fri, 21 Oct 2016 07:45:11 +0000 (09:45 +0200)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Fri, 21 Oct 2016 07:45:11 +0000 (09:45 +0200)
customer/sirona-aem/common.yaml

index 9474381fff90fc2e11c76dd6c7323634f5db8edb..79f6247097fa5c516890a7c21c726650f664d72b 100644 (file)
@@ -8,21 +8,46 @@ site::additional_classes:
 java::package: java-1.8.0-oraclejdk
 puppetconf::server: puppetmaster01.pixelpark.com
 
-ntp::servers:
-  - '0.centos.pool.ntp.org'
-  - '1.centos.pool.ntp.org'
-  - '2.centos.pool.ntp.org'
+# Start Performence Apache
+apache::keepalive: 'On'  # new
+apache::keepalive_timeout: 3  # new
+
+apache::mod::expires::expires_by_type:
+  - { application/javascript: "access plus 1 day" }
+  - { text/css: "access plus 1 day" }
+  - { image/jpeg: "access plus 1 day" }
+  - { image/png: "access plus 1 day" }
+  - { image/bmp: "access plus 1 day" }
+  - { image/gif: "access plus 1 day" }
+  - { image/vnd.microsoft.icon: "access plus 1 day" }
+  - { application/font-woff: "access plus 1 day" }
+  - { application/vnd.ms-fontobject: "access plus 1 day" }
+  - { image/svg+xml: "access plus 1 day" }
+  - { application/font-sfnt: "access plus 1 day" }
+  - { application/vnd.oasis.opendocument.formula-template: "access plus 1 day" }
+  - { application/font-woff2: "access plus 1 day" }  # new
+  - { image/svg+xml: "access plus 1 day" }  # new
 
-apache::mpm_module: worker
 apache::mod::mime::mime_types_additional:
   'AddHandler':
     'type-map': 'var'
   'AddType':
     'text/html': '.shtml'
+    'application/font-woff2': '.woff2'  # new
   'AddOutputFilter':
     'INCLUDES': '.shtml'
-  'AddEncoding':
-    'gzip': '.svgz'
+    'INCLUDES': '.woff2' # new
+  'AddEncoding':  # new
+    'gzip': '.svgz'  # new
+
+# End Performence Apache
+ntp::servers:
+  - '0.centos.pool.ntp.org'
+  - '1.centos.pool.ntp.org'
+  - '2.centos.pool.ntp.org'
+
+apache::mpm_module: worker
+
 
 accounts::users:
   sirona: