website/nginx.conf

52 lines
1.3 KiB
Nginx Configuration File
Raw Permalink Normal View History

2024-10-25 07:34:44 -04:00
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
2024-10-25 08:36:45 -04:00
'"$http_user_agent" "$http_x_forwarded_for" - "$http_cf_connecting_ip"';
2024-10-25 07:34:44 -04:00
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
2024-10-25 08:19:06 -04:00
server_tokens off;
2024-10-25 07:34:44 -04:00
#gzip on;
2024-10-25 08:19:06 -04:00
# CloudFlare Ips
real_ip_header CF-Connecting-IP;
2024-10-25 07:34:44 -04:00
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 131.0.72.0/22;
2024-10-25 08:19:06 -04:00
include /etc/nginx/conf.d/*.conf;
2024-10-25 03:58:18 -04:00
}