|
|
@@ -0,0 +1,21 @@ |
|
|
|
# Example config for a site on nginx using supervisor/gunicorn |
|
|
|
server { |
|
|
|
server_name www.example.com example.com; |
|
|
|
listen 80; |
|
|
|
|
|
|
|
root /home/www-data/git/rophako; |
|
|
|
|
|
|
|
location /static { |
|
|
|
alias /home/www-data/www/static; |
|
|
|
} |
|
|
|
location /favicon.ico { |
|
|
|
alias /home/www-data/www/favicon.ico; |
|
|
|
} |
|
|
|
|
|
|
|
location / { |
|
|
|
proxy_set_header Host $host; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $remote_addr; |
|
|
|
proxy_pass http://127.0.0.1:9000; |
|
|
|
} |
|
|
|
} |