containers-nginx/nginx/nginx.conf

63 lines
1.1 KiB
Nginx Configuration File
Raw Permalink Normal View History

2022-03-04 03:25:40 +00:00
user nginx nginx;
worker_processes auto;
pid /run/nginx.pid;
2022-03-04 03:55:52 +00:00
pcre_jit on;
2022-03-04 03:25:40 +00:00
include /etc/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
charset utf-8;
2022-09-17 22:24:26 +00:00
error_log syslog:server=unix:/dev/log;
2022-03-04 03:25:40 +00:00
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;
2022-03-04 03:25:40 +00:00
}
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;
}
}
}