diff --git a/deploy/base/ingress.yaml b/deploy/base/ingress.yaml index 1aedfa0..78605de 100644 --- a/deploy/base/ingress.yaml +++ b/deploy/base/ingress.yaml @@ -4,12 +4,12 @@ metadata: name: ingress annotations: nginx.ingress.kubernetes.io/proxy-body-size: 50m - nginx.ingress.kubernetes.io/server-snippet: | - location = /robots.txt { - add_header Content-Type text/plain; - return 200 "User-agent: Amazonbot\nDisallow: /\n\nUser-agent: BLEXBot\nDisallow: /\n\nUser-agent: SemrushBot\nDisallow: /\n\nUser-agent: AhrefsBot\nDisallow: /\n\nUser-agent: DotBot\nDisallow: /\n\nUser-agent: MJ12bot\nDisallow: /\n\nUser-agent: PetalBot\nDisallow: /\n\nUser-agent: ImagesiftBot\nDisallow: /\n\nUser-agent: BingBot\nCrawl-delay: 30\n"; + # nginx.ingress.kubernetes.io/server-snippet: | + # location = /robots.txt { + # add_header Content-Type text/plain; + # return 200 "User-agent: Amazonbot\nDisallow: /\n\nUser-agent: BLEXBot\nDisallow: /\n\nUser-agent: SemrushBot\nDisallow: /\n\nUser-agent: AhrefsBot\nDisallow: /\n\nUser-agent: DotBot\nDisallow: /\n\nUser-agent: MJ12bot\nDisallow: /\n\nUser-agent: PetalBot\nDisallow: /\n\nUser-agent: ImagesiftBot\nDisallow: /\n\nUser-agent: BingBot\nCrawl-delay: 30\n"; - } + # } spec: ingressClassName: nginx # NOTE: overlays depend on the order of rule entries. diff --git a/deploy/prod-ovh/ingress.yaml b/deploy/prod-ovh/ingress.yaml index 0ab445c..37cb4f6 100644 --- a/deploy/prod-ovh/ingress.yaml +++ b/deploy/prod-ovh/ingress.yaml @@ -2,14 +2,6 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress - annotations: - nginx.ingress.kubernetes.io/proxy-body-size: 50m - nginx.ingress.kubernetes.io/server-snippet: | - location = /robots.txt { - add_header Content-Type text/plain; - return 200 "User-agent: Amazonbot\nDisallow: /\n\nUser-agent: BLEXBot\nDisallow: /\n\nUser-agent: SemrushBot\nDisallow: /\n\nUser-agent: AhrefsBot\nDisallow: /\n\nUser-agent: DotBot\nDisallow: /\n\nUser-agent: MJ12bot\nDisallow: /\n\nUser-agent: PetalBot\nDisallow: /\n\nUser-agent: ImagesiftBot\nDisallow: /\n\nUser-agent: BingBot\nCrawl-delay: 30\n"; - - } spec: rules: