Skip to content

Commit

Permalink
adding config
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Nov 30, 2013
1 parent 7155d99 commit 16613b8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions conf/alpha.nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
upstream alpha_uwsgi {
server localhost:3030;
}

server {
server_name alpha.hatnote.com;
listen 80;
root /home/hatnote/alpha.hatnote.com/static/;
access_log /home/hatnote/alpha.hatnote.com/logs/access.log combined buffer=128k flush=10s;
error_log /home/hatnote/alpha.hatnote.com/logs/error.log;

expires 1h;

location /publish/ {
include uwsgi_params;

uwsgi_param X-Real-IP $remote_addr;
uwsgi_param Host $http_host;

uwsgi_pass alpha_uwsgi;
}

location / {
alias /home/hatnote/alpha.hatnote.com/static/;
}
}

0 comments on commit 16613b8

Please sign in to comment.