fixed geoip tag
This commit is contained in:
+4
-4
@@ -245,7 +245,7 @@ metadata:
|
||||
nginx.ingress.kubernetes.io/auth-snippet: |
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
if ($geoip2_city_country_code != "HU") {
|
||||
if ($geoip2_country_code != "HU") {
|
||||
return 403 "Access restricted to Hungary";
|
||||
}
|
||||
spec:
|
||||
@@ -312,7 +312,7 @@ spec:
|
||||
# Create public directory if it doesn't exist
|
||||
- name: init-public-dir
|
||||
image: busybox:1.36
|
||||
command: ['sh', '-c', 'mkdir -p /srv/public && chmod 755 /srv/public']
|
||||
command: ["sh", "-c", "mkdir -p /srv/public && chmod 755 /srv/public"]
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /srv
|
||||
@@ -474,7 +474,7 @@ metadata:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
external-dns.alpha.kubernetes.io/hostname: web.dooplex.hu
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
if ($geoip2_city_country_code != "HU") {
|
||||
if ($geoip2_country_code != "HU") {
|
||||
return 403 "Access restricted to Hungary";
|
||||
}
|
||||
spec:
|
||||
@@ -503,4 +503,4 @@ spec:
|
||||
service:
|
||||
name: static-server
|
||||
port:
|
||||
name: http
|
||||
name: http
|
||||
|
||||
Reference in New Issue
Block a user