Skip to content

Commit

Permalink
Merge branch 'release/1.23.05'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstibbs committed Jan 7, 2015
2 parents 1722793 + 754276c commit dd1113a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 4 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :shell, path: "provision/bootstrap-python.sh"
config.vm.provision :shell, path: "provision/bootstrap-config.sh"
config.vm.provision :shell, path: "provision/bootstrap-postgres.sh"
config.vm.provision :shell, path: "provision/bootstrap-nginx.sh"

end
2 changes: 1 addition & 1 deletion blockbuster/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'matt'
__version__ = '1.23.04'
__version__ = '1.23.05'
__db_schema_version__ = '1.23.00'

from flask import Flask
Expand Down
20 changes: 20 additions & 0 deletions provision/bootstrap-nginx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
# Configure the Nginx server

echo "Removing default site configuration for Nginx"
rm /etc/nginx/sites-enabled/default

echo "Seeding Nginx site configuration for blockbuster-server"
cd /etc/nginx/sites-enabled

if [ -e "blockbuster-server" ]
then
echo "NO CHANGE - blockbuster-server site file already present"
else
cp /vagrant/provision/nginx/blockbuster-server /etc/nginx/sites-available/
echo "Copying blockbuster-server site config into sites-available"
ln -s /etc/nginx/sites-available/blockbuster-server /etc/nginx/sites-enabled/blockbuster-server
fi

echo "Restarting Nginx"
service nginx reload
23 changes: 23 additions & 0 deletions provision/nginx/blockbuster-server
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
server {

listen 80;
server_name localhost;

access_log /var/log/nginx/blockbuster.access.log;

location /app {
alias /var/www/blockbuster-app/app;
}

location / {

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://localhost:8000;

}
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ certifi==14.05.14
cffi==0.8.2
cryptography==0.4
flower==0.7.2
gunicorn==19.1.1
httplib2==0.9
itsdangerous==0.24
kombu==3.0.23
Expand Down
3 changes: 0 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import datetime

import blockbuster
import blockbuster.bb_logging
import blockbuster.config
import blockbuster.bb_auditlogger

blockbuster.app.debug = blockbuster.config.debug_mode

Expand Down

0 comments on commit dd1113a

Please sign in to comment.