Skip to content

Commit

Permalink
added robots.txt to wikis
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Aug 30, 2024
1 parent 9d9a401 commit 58b04fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wiki/kiwix/kiwix-wiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/proxy-body-size: 512m
nginx.ingress.kubernetes.io/server-snippet: |
location /robots.txt {
add_header Content-Type "text/plain";
return 200 "User-agent: *\nDisallow: /";
}
spec:
tls:
- hosts:
Expand Down
5 changes: 5 additions & 0 deletions wiki/openzim/openzim-wiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ metadata:
namespace: wiki
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/server-snippet: |
location /robots.txt {
add_header Content-Type "text/plain";
return 200 "User-agent: *\nDisallow: /";
}
spec:
tls:
- hosts:
Expand Down

0 comments on commit 58b04fc

Please sign in to comment.