X-Git-Url: http://git.purplebirdman.com/proxy.git/blobdiff_plain/2987e57c8cce4db23651034aea94ecdc0ec1a06a..5369a58058aabcf3ea37f28cd0fe8c0cad81dbc4:/nginx.conf diff --git a/nginx.conf b/nginx.conf index 50518ed..6c145ae 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,51 +1,33 @@ -worker_processes 1; +user nginx; +worker_processes 1; + +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; + events { - worker_connections 1024; + worker_connections 1024; } + http { - server { - server_name public.purplebirdman.com; - location / { - proxy_pass http://public_web; - proxy_set_header Host $host; - } - } - server { - server_name movies.purplebirdman.com; - location / { - proxy_pass http://public_movies_web; - proxy_set_header Host $host; - } - } - server { - server_name go.purplebirdman.com; - location / { - proxy_pass http://go_httpd; - proxy_set_header Host $host; - } - location /ws { - proxy_pass http://go_socket:3000; - # websocket magic - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - } - - # catch-all server for both http and https - server { - listen *:80 default_server; - listen *:443 default_server; - server_name _; - - # Your SSL configuration - #ssl_certificate /etc/nginx/ssl/example.com/ssl-bundle.crt; - #ssl_certificate_key /etc/nginx/ssl/example.com/example.com.key; - - # Redirect to canonical site - #rewrite ^/(.*)$ http://example.com/$1 permanent; - } + ssl_password_file /etc/ssl/certs/passphrase.txt; + + include /etc/nginx/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 /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; }