From ef6a5220c8d2998b593f38d5660aba4a7c5cd656 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 11 Jan 2013 17:26:14 -0500 Subject: [PATCH] nginx: Remove unused config humbug-dev (imported from commit 178a320bf56076c61f4010bf6cb89ba04798b4a4) --- .../files/nginx/sites-available/humbug-dev | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 servers/puppet/files/nginx/sites-available/humbug-dev diff --git a/servers/puppet/files/nginx/sites-available/humbug-dev b/servers/puppet/files/nginx/sites-available/humbug-dev deleted file mode 100644 index 1175812b4c..0000000000 --- a/servers/puppet/files/nginx/sites-available/humbug-dev +++ /dev/null @@ -1,54 +0,0 @@ -server { - listen 80; - server_name dev.humbughq.com; - return 301 https://$server_name$request_uri; -} - -server { - listen 443; - - ssl on; - ssl_certificate /etc/ssl/certs/dev.humbughq.com.combined-chain.crt; - ssl_certificate_key /etc/ssl/private/staging_and_dev.humbughq.com.key; - - server_name dev.humbughq.com; - access_log /var/log/nginx/humbug.access.log; - error_log /var/log/nginx/humbug.error.log; - - # Enable HSTS: tell browsers to always use HTTPS - add_header Strict-Transport-Security max-age=15768000; - - # Avoid clickjacking attacks - add_header X-Frame-Options DENY; - - # Serve a custom error page when the app is down - error_page 502 503 504 /static/public/html/5xx.html; - - # Serve static files directly - location /static/ { - alias /home/humbug/humbug/zephyr/static-access-control/; - expires 30d; - error_page 404 /static/public/html/404.html; - } - - # Send longpoll requests to Tornado - location ~ /json/get_updates|/api/v1/get_messages { - proxy_pass http://localhost:9993; - proxy_redirect off; - - # Needed for longpolling - proxy_buffering off; - proxy_read_timeout 1200; - - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - # Send everything else to Django via FastCGI - location / { - include fastcgi_params; - fastcgi_pass unix:/home/humbug/humbug/fastcgi-socket; - fastcgi_split_path_info ^()(.*)$; - } -}