diff --git a/deploy/nginx.conf b/deploy/nginx.conf index f2a8e1c..7716dd3 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -1,23 +1,25 @@ -worker_processes 1; -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; -events { - worker_connections 1024; +worker_processes 2; worker_rlimit_nofile 65535; events { + multi_accept on; + worker_connections 65535; } + http { include 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; + access_log /dev/stdout; + error_log /dev/stdout lower; sendfile on; keepalive_timeout 65; gzip_static on; server { - listen 8888; - server_name localhost; + listen 8888; + charset utf-8; + absolute_redirect off; + location / { root /var/www/html; try_files $uri /index.html; @@ -28,6 +30,10 @@ http { expires 0; add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate"; } + } + + location /health { + return 200 '{"status": "UP"}'; } } -} \ No newline at end of file +}