cache control / rate limit
This commit is contained in:
26
Caddyfile
26
Caddyfile
@@ -1,30 +1,4 @@
|
|||||||
:80 {
|
:80 {
|
||||||
rate_limit {
|
|
||||||
zone api {
|
|
||||||
key {remote_host}
|
|
||||||
events 30
|
|
||||||
window 1m
|
|
||||||
match {
|
|
||||||
path /api/*
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
zone metrics {
|
|
||||||
key {remote_host}
|
|
||||||
events 10
|
|
||||||
window 1m
|
|
||||||
match {
|
|
||||||
path /metrics
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
zone general {
|
|
||||||
key {remote_host}
|
|
||||||
events 100
|
|
||||||
window 1m
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
|
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
|
|||||||
Reference in New Issue
Block a user