59 lines
993 B
Nginx Configuration File
59 lines
993 B
Nginx Configuration File
|
user nginx nginx;
|
||
|
worker_processes auto;
|
||
|
pid /run/nginx.pid;
|
||
|
|
||
|
include /etc/nginx/modules/*.conf;
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
charset utf-8;
|
||
|
|
||
|
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 /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;
|
||
|
}
|
||
|
}
|
||
|
}
|