dev/provisioning/files/site.j2
changeset 28 b0b56e0f8c7f
parent 27 a2342f26c9de
child 29 50702e620af4
--- a/dev/provisioning/files/site.j2	Fri Jan 15 15:27:56 2016 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-#user  nobody;
-worker_processes  1;
-
-#error_log  logs/error.log;
-#error_log  logs/error.log  notice;
-#error_log  logs/error.log  info;
-
-#pid        logs/nginx.pid;
-
-events {
-    worker_connections  1024;
-}
-
-http {
-
-    include       mime.types;
-    default_type  application/octet-stream;
-
-    server {
-        listen 80;
-        server_name {{ site_name }};
-        root /code/src/public;
-
-        index index.html index.htm index.php;
-
-        charset utf-8;
-
-        location / {
-            try_files $uri $uri/ /index.php?$query_string;
-        }
-
-        location = /favicon.ico { access_log off; log_not_found off; }
-        location = /robots.txt  { access_log off; log_not_found off; }
-
-        access_log off;
-        error_log  /var/log/nginx/{{ site_name }}-error.log error;
-
-        sendfile off;
-
-        client_max_body_size 100m;
-
-        location ~ \.php$ {
-            fastcgi_split_path_info ^(.+\.php)(/.+)$;
-            fastcgi_pass unix:/opt/remi/php56/root/var/run/php-fpm/php-fpm.sock;
-            fastcgi_index index.php;
-            include fastcgi_params;
-            fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
-            fastcgi_param PATH_TRANSLATED $document_root/$fastcgi_script_name;
-            fastcgi_intercept_errors off;
-            fastcgi_buffer_size 16k;
-            fastcgi_buffers 4 16k;
-        }
-
-        location ~ /\.ht {
-            deny all;
-        }
-    }
-    server {
-        listen 443;
-        server_name {{ site_name }};
-        root /code/src/public;
-
-        index index.html index.htm index.php;
-
-        charset utf-8;
-
-        location / {
-            try_files $uri $uri/ /index.php?$query_string;
-        }
-
-        location = /favicon.ico { access_log off; log_not_found off; }
-        location = /robots.txt  { access_log off; log_not_found off; }
-
-        access_log off;
-        error_log  /var/log/nginx/{{ site_name }}-ssl-error.log error;
-
-        sendfile off;
-
-        client_max_body_size 100m;
-
-        location ~ \.php$ {
-            fastcgi_split_path_info ^(.+\.php)(/.+)$;
-            fastcgi_pass unix:/opt/remi/php56/root/var/run/php-fpm/php-fpm.sock;
-            fastcgi_index index.php;
-            include fastcgi_params;
-            fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
-            fastcgi_param PATH_TRANSLATED $document_root/$fastcgi_script_name;
-            fastcgi_intercept_errors off;
-            fastcgi_buffer_size 16k;
-            fastcgi_buffers 4 16k;
-        }
-
-        location ~ /\.ht {
-            deny all;
-        }
-
-        ssl on;
-        ssl_certificate     /etc/nginx/ssl/{{ site_name }}.crt;
-        ssl_certificate_key /etc/nginx/ssl/{{ site_name }}.key;
-    }
-
-}