X-Git-Url: http://git.purplebirdman.com/proxy.git/blobdiff_plain/44064e280c44fa1ae2a471da641ed2b9439f6aee..e80abd0b4c3c3479b92fdda7564da16abac279db:/nginx.conf?ds=sidebyside diff --git a/nginx.conf b/nginx.conf index 25d807f..6c145ae 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,22 +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 kanban.purplebirdman.com; - location / { - proxy_pass http://kanboard_web; - proxy_set_header Host $host; - } - } - server { - server_name public.purplebirdman.com; - location / { - proxy_pass http://public_web; - 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; }