123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- user nginx;
- worker_processes auto;
- pcre_jit on;
- error_log /var/log/nginx/error.log warn;
- include /etc/nginx/modules/*.conf;
- events {
- worker_connections 1024;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- set_real_ip_from 0.0.0.0/0;
- real_ip_header X-Forwarded-For;
- server_tokens off;
- client_max_body_size 1m;
- sendfile on;
- tcp_nopush on;
- ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
- ssl_prefer_server_ciphers on;
- ssl_session_cache shared:SSL:2m;
- ssl_session_timeout 1h;
- ssl_session_tickets off;
- gzip_vary on;
- map $http_upgrade $connection_upgrade {
- default upgrade;
- '' close;
- }
- 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 /var/log/nginx/access.log main;
- include /etc/nginx/http.d/*.conf;
- }
|