Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from mithro/nginx-config
Browse files Browse the repository at this point in the history
Adding nginx configuration and instructions.
  • Loading branch information
enkidulan committed Jul 23, 2014
2 parents 8ef30e1 + a12773a commit 04cdc7e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx/README.md
@@ -0,0 +1,6 @@
This is the configuration file for a nginx reverse proxy which runs in front of
the circus daemon. See the following image;

![nginx and circus](http://circus.readthedocs.org/en/latest/_images/circus-stack.png)

Copy the file over your /etc/nginx/sites-available/default file.
20 changes: 20 additions & 0 deletions nginx/default
@@ -0,0 +1,20 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

location / {
proxy_pass http://127.0.0.1:6700;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
}
}

0 comments on commit 04cdc7e

Please sign in to comment.