Skip to content

Commit

Permalink
Updated domains in light of new SSL policies
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinthehole committed Oct 8, 2012
1 parent 2f85f5c commit 2274791
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 36 deletions.
6 changes: 3 additions & 3 deletions www/deploy/apache2/prod.conf
@@ -1,6 +1,6 @@
<VirtualHost *> <VirtualHost *>
ServerAdmin sys@{{ domain }} ServerAdmin sys@{{ domain }}
ServerName prod-{{ project_code }}-{{ client }}.{{ domain }} ServerName {{ client }}-{{ project_code }}-prod.{{ domain }}
DocumentRoot /var/www/nginx-default DocumentRoot /var/www/nginx-default


WSGIDaemonProcess {{ client }}-{{ project_code }}-prod processes=9 threads=10 display-name={{ client }}-{{ project_code }}-prod maximum-requests=10000 WSGIDaemonProcess {{ client }}-{{ project_code }}-prod processes=9 threads=10 display-name={{ client }}-{{ project_code }}-prod maximum-requests=10000
Expand All @@ -18,7 +18,7 @@
# - %T is time to serve the request in SECONDS # - %T is time to serve the request in SECONDS
# - %D is time to serve the request in MICROSECONDS # - %D is time to serve the request in MICROSECONDS
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T/%D" timed LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T/%D" timed
CustomLog /var/log/apache2/access.prod-{{ project_code }}-{{ client }}.{{ domain }}.log timed CustomLog /var/log/apache2/access.{{ client }}-{{ project_code }}-prod.{{ domain }}.log timed
ErrorLog /var/log/apache2/error.prod-{{ project_code }}-{{ client }}.{{ domain }}.log ErrorLog /var/log/apache2/error.{{ client }}-{{ project_code }}-prod.{{ domain }}.log


</Virtualhost> </Virtualhost>
6 changes: 3 additions & 3 deletions www/deploy/apache2/stage.conf
@@ -1,6 +1,6 @@
<VirtualHost *> <VirtualHost *>
ServerAdmin sys@{{ domain }} ServerAdmin sys@{{ domain }}
ServerName stage-{{ project_code }}-{{ client }}.{{ domain }} ServerName {{ client }}-{{ project_code }}-stage.{{ domain }}
DocumentRoot /var/www/nginx-default DocumentRoot /var/www/nginx-default


WSGIDaemonProcess {{ client }}-{{ project_code }}-stage processes=2 threads=5 display-name={{ client }}-{{ project_code }}-stage maximum-requests=10000 WSGIDaemonProcess {{ client }}-{{ project_code }}-stage processes=2 threads=5 display-name={{ client }}-{{ project_code }}-stage maximum-requests=10000
Expand All @@ -18,8 +18,8 @@
# - %T is time to serve the request in SECONDS # - %T is time to serve the request in SECONDS
# - %D is time to serve the request in MICROSECONDS # - %D is time to serve the request in MICROSECONDS
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T/%D" timed LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T/%D" timed
CustomLog /var/log/apache2/access.stage-{{ project_code }}-{{ client }}.{{ domain }}.log timed CustomLog /var/log/apache2/access.{{ client }}-{{ project_code }}-stage.{{ domain }}.log timed
ErrorLog /var/log/apache2/error.stage-{{ project_code }}-{{ client }}.{{ domain }}.log ErrorLog /var/log/apache2/error.{{ client }}-{{ project_code }}-stage.{{ domain }}.log


# This will need removing when we go live. # This will need removing when we go live.
<Location /> <Location />
Expand Down
6 changes: 3 additions & 3 deletions www/deploy/apache2/test.conf
@@ -1,6 +1,6 @@
<VirtualHost *> <VirtualHost *>
ServerAdmin sys@{{ domain }} ServerAdmin sys@{{ domain }}
ServerName test-{{ project_code }}-{{ client }}.{{ domain }} ServerName {{ client }}-{{ project_code }}-test.{{ domain }}
DocumentRoot /var/www/nginx-default DocumentRoot /var/www/nginx-default


WSGIDaemonProcess {{ client }}-{{ project_code }}-test processes=2 threads=5 display-name={{ client }}-{{ project_code }}-test maximum-requests=10000 WSGIDaemonProcess {{ client }}-{{ project_code }}-test processes=2 threads=5 display-name={{ client }}-{{ project_code }}-test maximum-requests=10000
Expand All @@ -18,8 +18,8 @@
# - %T is time to serve the request in SECONDS # - %T is time to serve the request in SECONDS
# - %D is time to serve the request in MICROSECONDS # - %D is time to serve the request in MICROSECONDS
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T/%D" timed LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T/%D" timed
CustomLog /var/log/apache2/access.test-{{ project_code }}-{{ client }}.{{ domain }}.log timed CustomLog /var/log/apache2/access.{{ client }}-{{ project_code }}-test.{{ domain }}.log timed
ErrorLog /var/log/apache2/error.test-{{ project_code }}-{{ client }}.{{ domain }}.log ErrorLog /var/log/apache2/error.{{ client }}-{{ project_code }}-test.{{ domain }}.log


# This will need removing when we go live. # This will need removing when we go live.
<Location /> <Location />
Expand Down
23 changes: 14 additions & 9 deletions www/deploy/nginx/prod.conf
@@ -1,16 +1,18 @@
server { server {
listen 80; listen 80;
server_name prod-{{ project_code }}-{{ client }}.{{ domain }}; server_name {{ client }}-{{ project_code }}-prod.{{ domain }};
access_log /var/log/nginx/access.prod-{{ project_code }}-{{ client }}.{{ domain }}; access_log /var/log/nginx/access.{{ client }}-{{ project_code }}-prod.{{ domain }};


gzip on; gzip on;
gzip_static on;
gzip_proxied any; gzip_proxied any;
gzip_types text/plain application/xml application/x-javascript text/javascript text/css; gzip_types text/plain application/xml application/x-javascript text/javascript text/css application/x-json;


proxy_pass_request_headers on; proxy_pass_request_headers on;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Url-Scheme $scheme;
proxy_read_timeout 120s; proxy_read_timeout 120s;


client_max_body_size 20m; client_max_body_size 20m;
Expand All @@ -19,12 +21,15 @@ server {
proxy_pass http://localhost:81/; proxy_pass http://localhost:81/;
} }


location ~* \.(jpg|png|gif|jpeg|js|css|htm|mp3|wav|swf|mov|doc|xls|ppt|docx|pptx|xlsx|swf|woff|otf|eot|ttf|ico|xml)$ { location /static/ {
expires max; expires max;
root /var/www/{{ client }}/{{ project_code }}/builds/prod/public/; alias /var/www/{{ client }}/{{ project_code }}/builds/prod/public/static/;
if (!-f $request_filename) { break;
break; }
proxy_pass http://localhost:81;
} location /media/ {
expires max;
alias /var/www/{{ client }}/{{ project_code }}/builds/prod/public/media/;
break;
} }
} }
23 changes: 14 additions & 9 deletions www/deploy/nginx/stage.conf
@@ -1,16 +1,18 @@
server { server {
listen 80; listen 80;
server_name stage-{{ project_code }}-{{ client }}.{{ domain }}; server_name {{ client }}-{{ project_code }}-stage.{{ domain }};
access_log /var/log/nginx/access.stage-{{ project_code }}-{{ client }}.{{ domain }}; access_log /var/log/nginx/access.{{ client }}-{{ project_code }}-stage.{{ domain }};


gzip on; gzip on;
gzip_static on;
gzip_proxied any; gzip_proxied any;
gzip_types text/plain application/xml application/x-javascript text/javascript text/css; gzip_types text/plain application/xml application/x-javascript text/javascript text/css application/x-json;


proxy_pass_request_headers on; proxy_pass_request_headers on;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Url-Scheme $scheme;
proxy_read_timeout 120s; proxy_read_timeout 120s;


client_max_body_size 20m; client_max_body_size 20m;
Expand All @@ -19,12 +21,15 @@ server {
proxy_pass http://localhost:81/; proxy_pass http://localhost:81/;
} }


location ~* \.(jpg|png|gif|jpeg|js|css|htm|mp3|wav|swf|mov|doc|xls|ppt|docx|pptx|xlsx|swf|woff|otf|eot|ttf|ico|xml)$ { location /static/ {
expires max; expires max;
root /var/www/{{ client }}/{{ project_code }}/builds/stage/public/; alias /var/www/{{ client }}/{{ project_code }}/builds/stage/public/static/;
if (!-f $request_filename) { break;
break; }
proxy_pass http://localhost:81;
} location /media/ {
expires max;
alias /var/www/{{ client }}/{{ project_code }}/builds/stage/public/media/;
break;
} }
} }
23 changes: 14 additions & 9 deletions www/deploy/nginx/test.conf
@@ -1,16 +1,18 @@
server { server {
listen 80; listen 80;
server_name test-{{ project_code }}-{{ client }}.{{ domain }}; server_name {{ client }}-{{ project_code }}-test.{{ domain }};
access_log /var/log/nginx/access.test-{{ project_code }}-{{ client }}-{{ domain }}; access_log /var/log/nginx/access.{{ client }}-{{ project_code }}-test.{{ domain }};


gzip on; gzip on;
gzip_static on;
gzip_proxied any; gzip_proxied any;
gzip_types text/plain application/xml application/x-javascript text/javascript text/css; gzip_types text/plain application/xml application/x-javascript text/javascript text/css application/x-json;


proxy_pass_request_headers on; proxy_pass_request_headers on;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Url-Scheme $scheme;
proxy_read_timeout 120s; proxy_read_timeout 120s;


client_max_body_size 20m; client_max_body_size 20m;
Expand All @@ -19,12 +21,15 @@ server {
proxy_pass http://localhost:81/; proxy_pass http://localhost:81/;
} }


location ~* \.(jpg|png|gif|jpeg|js|css|htm|mp3|wav|swf|mov|doc|xls|ppt|docx|pptx|xlsx|swf|woff|otf|eot|ttf|ico|xml)$ { location /static/ {
expires max; expires max;
root /var/www/{{ client }}/{{ project_code }}/builds/test/public/; alias /var/www/{{ client }}/{{ project_code }}/builds/test/public/static/;
if (!-f $request_filename) { break;
break; }
proxy_pass http://localhost:81;
} location /media/ {
expires max;
alias /var/www/{{ client }}/{{ project_code }}/builds/test/public/media/;
break;
} }
} }

0 comments on commit 2274791

Please sign in to comment.