From 160952965d73f06e52f4cf0630a2cf92725eb736 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 15 Jun 2015 23:12:23 -0700 Subject: [PATCH] add site config for nginx --- nginx.conf | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..0bb8013 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,39 @@ +server { + listen 443; + #listen [::]:443 default_server ipv6only=on; ## listen for ipv6 + server_name ocean.samhuri.net; + + ssl on; + ssl_certificate cert.pem; + ssl_certificate_key cert.key; + ssl_session_timeout 5m; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + location / { + proxy_pass http://localhost:6706; + } +} + + +server { + listen 5000; + #listen [::]:443 default_server ipv6only=on; ## listen for ipv6 + server_name ocean.samhuri.net; + + ssl on; + ssl_certificate cert.pem; + ssl_certificate_key cert.key; + ssl_session_timeout 5m; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + root /home/sjs/samhuri.net/www; + index index.html; + + location / { + try_files $uri $uri/ $uri/index.html; + } +}