1
0
mirror of https://github.com/dcarrillo/docker-nginx.git synced 2025-11-20 03:12:36 +00:00

Bump nginx to 1.23.1, Alpine to 3.16 and remove geoip support (#23)

This commit is contained in:
2022-07-25 20:47:36 +02:00
committed by GitHub
parent fb1e810b54
commit 5f90de281b
8 changed files with 6 additions and 95 deletions

View File

@@ -41,22 +41,6 @@ http {
ssl_dhparam /tmp/dhparams.pem;
ssl_ecdh_curve secp384r1;
geoip2 /tmp/GeoLite2-Country.mmdb {
auto_reload 24h;
$geoip_country_iso_code country iso_code;
$geoip_country_name country names en;
}
# geoip2 /usr/local/nginx/conf/maxminddb/GeoLite2-City.mmdb {
# auto_reload 24h;
# $geoip_postal_code postal code;
# $geoip_latitude location latitude;
# $geoip_longitude location longitude;
# $geoip_city city names en;
# }
limit_req_zone $binary_remote_addr zone=limited4:10m rate=4r/s;
limit_req_status 429;
@@ -69,13 +53,6 @@ http {
server_name _ "";
access_log /dev/fd/1;
location = /ip {
limit_req zone=limited4 burst=5 nodelay;
if ($http_user_agent ~* (?:curl|wget|libwww-perl|python|ansible-httpget|HTTPie|WindowsPowerShell|http_request|^$)) {
return 200 "$remote_addr\n";
}
}
location = /nginx_status {
stub_status on;
}