]> Untitled Git - proxy.git/blobdiff - nginx.conf
Added kanboard conf
[proxy.git] / nginx.conf
index 74f1b685ebbf120d4826d22125316a6f410bd612..6c145aedfe6c2263fa1ae451e61c3a1ca22864cd 100644 (file)
@@ -1,30 +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.online;
-        location / {
-            proxy_pass http://public_web;
-            proxy_set_header Host $host;
-        }
-    }
-    server {
-        server_name forum.purplebirdman.online;
-        location / {
-            proxy_pass http://forum_web;
-            proxy_set_header Host $host;
-        }
-    }
-    server {
-        server_name kanban.purplebirdman.online;
-        client_max_body_size 100M;
-        location / {
-            proxy_pass http://kanboard_kanboard;
-            proxy_set_header Host $host;
-        }
-    }
+    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;
 }