containers-nginx/nginx/nginx.conf

62 lines
1.1 KiB
Nginx Configuration File

user nginx nginx;
worker_processes auto;
pid /run/nginx.pid;
pcre_jit on;
include /etc/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
charset utf-8;
error_log syslog:server=unix:/dev/log;
include mime.types;
include snippets/privacy.conf;
include snippets/brotli.conf;
include snippets/gzip.conf;
include access_logd.conf;
resolver 127.0.0.11;
default_type text/plain;
server_names_hash_bucket_size 64;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
client_max_body_size 111M;
client_body_buffer_size 2084k;
keepalive_timeout 65;
proxy_read_timeout 360s;
proxy_send_timeout 360s;
geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb {
$geoip2_data_country_name country names en;
$geoip2_data_country_iso_code country iso_code;
}
geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb {
$geoip2_data_city_name city names en;
}
include maps/*.conf;
include sites/*.conf;
server {
listen localhost:8080;
allow 127.0.0.1/32;
allow ::1/128;
deny all;
location = /stub_status {
stub_status;
}
}
}