Update deploy/nginx.conf
This commit is contained in:
@@ -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;
|
||||
|
||||
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"}';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user