Files
astra-frontend/deploy/nginx.conf
2023-06-16 17:18:17 +00:00

40 lines
1.0 KiB
Nginx Configuration File

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 /dev/stdout;
error_log /dev/stdout;
sendfile on;
keepalive_timeout 65;
gzip_static on;
server {
listen 8888;
charset utf-8;
absolute_redirect off;
location / {
root /var/www/html;
try_files $uri /index.html;
etag on;
expires max;
add_header Cache-Control public;
location = /index.html {
expires 0;
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
}
}
location /health {
return 200 '{"status": "UP"}';
}
}
}