-
Notifications
You must be signed in to change notification settings - Fork 0
/
geoblock-proxy.yml
29 lines (29 loc) · 922 Bytes
/
geoblock-proxy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
logger: debug
# Enable metrics by providing the listen interface
metrics: "127.0.0.1:9095"
#
#
# endpoints is the list of supported frontends & backends
# => protocol://frontend:5000?backend=backend-1:5000&backend=backend-2:5000
# Protocol can be `udp' or `tcp'
# Frontend is the proxy listening interface
# Backend is the upstream service protected by the proxy
endpoints:
- tcp://localhost:7777?backend=localhost:7778&backend=localhost:7779
- udp://localhost:7777?backend=localhost:7778&backend=localhost:7779
# databases is the liste ip2location databases.
databases:
- IP2LOCATION-LITE-DB1.BIN
#
# Rules' configuration
#
# default_action is the default action to perform when a new incoming connection is openned (`block' or `allow')
default_action: block
allowlist:
- type: country
value: FR
- type: cidr
value: 127.0.0.0/8 # IPv4 loopback
# blocklist:
# - type: cidr
# value: 127.0.0.0/8 # IPv4 loopback