mirror of
https://github.com/hexastack/hexabot
synced 2024-11-25 21:37:59 +00:00
40 lines
861 B
Nginx Configuration File
40 lines
861 B
Nginx Configuration File
worker_processes 1;
|
|
user root;
|
|
|
|
error_log /dev/stdout info;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
############# NGINX conf
|
|
include /etc/nginx/mime.types;
|
|
include /etc/nginx/fastcgi.conf;
|
|
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=7d use_temp_path=off;
|
|
|
|
error_log /dev/stdout info;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
server_names_hash_bucket_size 128;
|
|
|
|
############## Let NGINX see client real IPs
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
############## NGINX security
|
|
client_body_buffer_size 10K;
|
|
client_body_timeout 12;
|
|
client_header_buffer_size 1k;
|
|
client_header_timeout 12;
|
|
client_max_body_size 8M;
|
|
keepalive_timeout 15;
|
|
large_client_header_buffers 4 8k;
|
|
proxy_hide_header X-Powered-By;
|
|
send_timeout 10;
|
|
server_tokens off;
|
|
|
|
############# Custom conf
|
|
include /etc/nginx/default.conf;
|
|
}
|