added geoip filters to ingresses
This commit is contained in:
@@ -210,6 +210,10 @@ metadata:
|
||||
external-dns.alpha.kubernetes.io/hostname: gitea.dooplex.hu,gitea.home
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
if ($geoip2_city_country_code != "HU") {
|
||||
return 403 "Access restricted to Hungary";
|
||||
}
|
||||
labels:
|
||||
app.kubernetes.io/instance: gitea
|
||||
app.kubernetes.io/name: gitea
|
||||
|
||||
Reference in New Issue
Block a user