Update deploy/nginx.conf
This commit is contained in:
@@ -1,23 +1,25 @@
|
|||||||
worker_processes 1;
|
worker_processes 2; worker_rlimit_nofile 65535; events {
|
||||||
error_log /var/log/nginx/error.log warn;
|
multi_accept on;
|
||||||
pid /var/run/nginx.pid;
|
worker_connections 65535;
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include mime.types;
|
include mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$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;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
server {
|
server {
|
||||||
listen 8888;
|
listen 8888;
|
||||||
server_name localhost;
|
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
absolute_redirect off;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
try_files $uri /index.html;
|
try_files $uri /index.html;
|
||||||
@@ -28,6 +30,10 @@ http {
|
|||||||
expires 0;
|
expires 0;
|
||||||
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
|
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location /health {
|
||||||
|
return 200 '{"status": "UP"}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user