This commit is contained in:
parent
edcdada678
commit
e7229ae189
@ -81,7 +81,6 @@ backend admin from {{ haproxy.config.namespace }}
|
||||
{%- endmacro %}
|
||||
|
||||
{%- macro geoip() %}
|
||||
# GeoIP
|
||||
http-request set-var(txn.country) lua.country(req.src)
|
||||
http-request return status 200 content-type "text/html; charset=utf-8" lf-string "<html><body><p>ip: %[var(req.src)]</p><p>country: %[lua.country(req.src)]</p><p>city: %[lua.city(req.src)]<p></body></html>" if self_host path_location
|
||||
acl allowed_country var(txn.country),map_str(/etc/haproxy/maps/countries,OK) OK
|
||||
@ -114,7 +113,6 @@ global
|
||||
ssl-default-server-options {{ haproxy.config.ssl_options|join(" ") }}
|
||||
|
||||
tune.lua.maxmem {{ haproxy.config.lua_max_mem }}
|
||||
|
||||
{% if haproxy.config.quic|default(true) %}
|
||||
expose-experimental-directives
|
||||
.if feature(QUIC)
|
||||
|
Loading…
Reference in New Issue
Block a user