mirror of
https://github.com/fergalmoran/nginx-rtmp-geoip2-alpine.git
synced 2025-12-27 03:48:36 +00:00
Minor corrections
This commit is contained in:
@@ -28,7 +28,7 @@ http {
|
|||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
# GeoIP2
|
# Main
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
@@ -40,7 +40,7 @@ http {
|
|||||||
'$geoip2_data_country_iso $geoip2_data_country_name'
|
'$geoip2_data_country_iso $geoip2_data_country_name'
|
||||||
'- EU Country: $geoip2_data_country_is_eu';
|
'- EU Country: $geoip2_data_country_is_eu';
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log main_geo; # GeoIP2
|
access_log /var/log/nginx/access.log main_geo;
|
||||||
#===================== GEOIP2 =====================#
|
#===================== GEOIP2 =====================#
|
||||||
geoip2 /usr/share/geoip/GeoLite2-Country.mmdb {
|
geoip2 /usr/share/geoip/GeoLite2-Country.mmdb {
|
||||||
$geoip2_metadata_country_build metadata build_epoch;
|
$geoip2_metadata_country_build metadata build_epoch;
|
||||||
|
|||||||
Reference in New Issue
Block a user