aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2012-12-08 14:27:55 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2012-12-08 14:27:55 +0100
commite2f8b82bf99b5a3e31d6e4ca6cba0c9dfdff2f20 (patch)
tree653ea43d339ae51eeb1d31728cc01ef3e18caa2a
parentfc73f2e4d1d00217abf0807bbf515e9b386d10ce (diff)
downloaddotfiles-e2f8b82bf99b5a3e31d6e4ca6cba0c9dfdff2f20.tar.gz
dotfiles-e2f8b82bf99b5a3e31d6e4ca6cba0c9dfdff2f20.zip
Added the configuration of NGinx for SPDY
-rw-r--r--nginx_unicorn/nginx.server.conf24
1 files changed, 23 insertions, 1 deletions
diff --git a/nginx_unicorn/nginx.server.conf b/nginx_unicorn/nginx.server.conf
index 034ba3c..5648d55 100644
--- a/nginx_unicorn/nginx.server.conf
+++ b/nginx_unicorn/nginx.server.conf
@@ -18,4 +18,26 @@ server {
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
-}
+}
+
+# Same as above but with SSL & SPDY
+# server {
+# listen 443 ssl spdy default_server;
+# server_name example.com;
+
+# ssl_certificate /etc/ssl/certs/my.ssl.crt;
+# ssl_certificate_key /etc/ssl/private/my.ssl.key;
+
+# root /my/app/public/root;
+# try_files $uri/index.html $uri @unicorn;
+# location @unicorn {
+# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+# proxy_set_header Host $http_host;
+# proxy_redirect off;
+# proxy_pass http://unicorn;
+# }
+
+# error_page 500 502 503 504 /500.html;
+# client_max_body_size 4G;
+# keepalive_timeout 10;
+# }