]> Untitled Git - proxy.git/blobdiff - nginx.conf
Fixed root certificate
[proxy.git] / nginx.conf
index 5a3445582bc2367f352cc49768ad4c797ba8e32c..8f66c5c5f5245827d50852b686e98dd67fe597b7 100644 (file)
@@ -1,30 +1,31 @@
-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 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;
-        }
-    }
+    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;
 }