Skip to content

Commit

Permalink
Merge pull request #106 from RasaHQ/disallow_indexing
Browse files Browse the repository at this point in the history
Disallow indexing - nginx-ingress
  • Loading branch information
wochinge authored Nov 18, 2020
2 parents f2b2189 + eba126d commit c02bf9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
curl -sfL https://get.k3s.io | sh -
sudo chmod 744 /etc/rancher/k3s/k3s.yaml
echo "::set-env name=KUBECONFIG::/etc/rancher/k3s/k3s.yaml"
echo "KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV
- name: Install Helm
run: |
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Generate credentials
run: |
USER_PASSWORD=$(openssl rand -base64 32)
echo "::set-env name=INITIAL_USER_PASSWORD::${USER_PASSWORD}"
echo "INITIAL_USER_PASSWORD=${USER_PASSWORD}" >> $GITHUB_ENV
- name: Free disk space
# tries to make sure we do not run out of disk space, see
Expand Down
2 changes: 1 addition & 1 deletion charts/rasa-x/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2

version: "1.7.7"
version: "1.7.8"
appVersion: "0.33.0"

name: rasa-x
Expand Down
5 changes: 5 additions & 0 deletions charts/rasa-x/templates/rasa-x-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ metadata:
if ($arg_environment = "production") {
rewrite ^/api/chat$ /core/webhooks/rasa/webhook last;
}
if ($request_uri ~ ^/robots.txt$) {
return 200 "User-agent: *\nDisallow: /\n";
}
nginx.ingress.kubernetes.io/server-snippet: |
add_header X-Robots-Tag none;
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down

0 comments on commit c02bf9f

Please sign in to comment.