From dd33c0639b6c020794affe5e4ce9042d868837cd Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Sat, 8 Oct 2016 00:33:07 +0100 Subject: [PATCH] Update nginx.conf --- nginx.conf | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 272a57caa7..b5bead4f8e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,4 +1,38 @@ -server { + +#user nobody; +worker_processes 1; + +#error_log logs/error.log; +#error_log logs/error.log notice; +#error_log logs/error.log info; + +#pid logs/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + #include mime.types; + default_type application/octet-stream; + + #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + # '$status $body_bytes_sent "$http_referer" ' + # '"$http_user_agent" "$http_x_forwarded_for"'; + + #access_log logs/access.log main; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + server { listen 8888; server_name dev-platform-proxy; @@ -94,4 +128,42 @@ server { proxy_pass_header Set-Cookie; proxy_pass_request_headers on; } - } \ No newline at end of file + } + + + # another virtual host using mix of IP-, name-, and port-based configuration + # + #server { + # listen 8000; + # listen somename:8080; + # server_name somename alias another.alias; + + # location / { + # root html; + # index index.html index.htm; + # } + #} + + + # HTTPS server + # + #server { + # listen 443 ssl; + # server_name localhost; + + # ssl_certificate cert.pem; + # ssl_certificate_key cert.key; + + # ssl_session_cache shared:SSL:1m; + # ssl_session_timeout 5m; + + # ssl_ciphers HIGH:!aNULL:!MD5; + # ssl_prefer_server_ciphers on; + + # location / { + # root html; + # index index.html index.htm; + # } + #} + #include servers/*; +}