nsite-ts/nginx/nginx.conf

34 lines
703 B
Nginx Configuration File
Raw Normal View History

user nsite;
2024-09-25 13:37:32 -05:00
worker_processes auto;
error_log /dev/stderr notice;
2024-09-25 13:37:32 -05:00
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# add custom cache
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=request_cache:10m max_size=10g inactive=60m use_temp_path=off;
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 main;
2024-09-25 13:37:32 -05:00
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
include /etc/nginx/conf.d/*.conf;
}