From 1602c28a62a14ad0d55e0a800f517dbc2638c772 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Thu, 30 Jul 2015 15:54:35 +0200 Subject: [PATCH] Remove useless helpers --- templates/etc/nginx/helpers/no-ht.j2 | 10 ---------- templates/etc/nginx/helpers/php.j2 | 19 ------------------- templates/etc/nginx/helpers/static-expires.j2 | 10 ---------- 3 files changed, 39 deletions(-) delete mode 100644 templates/etc/nginx/helpers/no-ht.j2 delete mode 100644 templates/etc/nginx/helpers/php.j2 delete mode 100644 templates/etc/nginx/helpers/static-expires.j2 diff --git a/templates/etc/nginx/helpers/no-ht.j2 b/templates/etc/nginx/helpers/no-ht.j2 deleted file mode 100644 index d262d38..0000000 --- a/templates/etc/nginx/helpers/no-ht.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# -# {{ ansible_managed }} -# - -location ~ /\.ht { - deny all; -} - - -# vim:filetype=nginx diff --git a/templates/etc/nginx/helpers/php.j2 b/templates/etc/nginx/helpers/php.j2 deleted file mode 100644 index 4433709..0000000 --- a/templates/etc/nginx/helpers/php.j2 +++ /dev/null @@ -1,19 +0,0 @@ -# -# {{ ansible_managed }} -# - -location ~ \.php$ { - fastcgi_pass php; - fastcgi_index index.php; - fastcgi_intercept_errors on; - include fastcgi.conf; - - # TODO... - # Newrelic custom header: https://docs.newrelic.com/docs/apm/other-features/request-queueing/request-queue-server-configuration-examples - #fastcgi_param HTTP_X_REQUEST_START "t=${msec}"; - # Newrelic custom PHP appname: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-directory-ini-settings#perdir-nginx - #fastcgi_param PHP_VALUE "newrelic.appname=${host}"; -} - - -# vim:filetype=nginx diff --git a/templates/etc/nginx/helpers/static-expires.j2 b/templates/etc/nginx/helpers/static-expires.j2 deleted file mode 100644 index f553b32..0000000 --- a/templates/etc/nginx/helpers/static-expires.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# -# {{ ansible_managed }} -# - -location ~* \.(txt|js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 30d; - log_not_found off; -} - -# vim:filetype=nginx