mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 05:52:17 +00:00
nginx conf
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# ubuntu specific
|
||||
user nginx;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
# universal
|
||||
|
||||
worker_processes auto;
|
||||
worker_rlimit_nofile 300000; # needs to be < ulimit -n
|
||||
@@ -35,7 +37,6 @@ http {
|
||||
|
||||
reset_timedout_connection on;
|
||||
send_timeout 20;
|
||||
|
||||
max_ranges 0;
|
||||
|
||||
gzip on;
|
||||
@@ -52,6 +53,7 @@ http {
|
||||
#'"request": "$request", '
|
||||
#'"request_time": $request_time, '
|
||||
'"body_bytes_sent": $body_bytes_sent, '
|
||||
|
||||
'"http_referrer": "$http_referer", '
|
||||
'"http_user_agent": "$http_user_agent", '
|
||||
#'"scheme": "$scheme", '
|
||||
@@ -60,17 +62,18 @@ http {
|
||||
|
||||
# IP address related
|
||||
# IP address logging is disabled
|
||||
#'"remote_addr": "$remote_addr", '
|
||||
#'"http_x_forwarded_for": "$http_x_forwarded_for", '
|
||||
# '"remote_addr": "$remote_addr", '
|
||||
# '"http_x_forwarded_for": "$http_x_forwarded_for", '
|
||||
# '"http_cf_connecting_ip": "$http_cf_connecting_ip", '
|
||||
|
||||
# CF related
|
||||
#'"http_cf_ray": "$http_cf_ray", '
|
||||
#'"http_cf_ipcountry": "$http_cf_ipcountry", '
|
||||
#'"http_cf_connecting_ip": "$http_cf_connecting_ip", '
|
||||
|
||||
'"_": "_"' # helper for no trailing comma
|
||||
'}';
|
||||
|
||||
|
||||
access_log off;
|
||||
#access_log /data/nginx/logs/nginx-access.log access_json buffer=128k;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user