X-Git-Url: http://git.purplebirdman.com/proxy.git/blobdiff_plain/6a66880cb6ae71ffae074bde40fe2f4a9d91408e..b7f6ea3e64e6ee902036f9e6721ceb0e6e8a1a67:/nginx.conf diff --git a/nginx.conf b/nginx.conf index 5b6c9d8..8f66c5c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,29 +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.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; - location / { - proxy_pass http://kanboard_kanboard; - 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; }