We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b3d42 commit 58f392bCopy full SHA for 58f392b
k8s/drexel-scraper/templates/grafana-ingress.yaml
@@ -5,14 +5,11 @@ metadata:
5
annotations:
6
kubernetes.io/ingress.class: nginx
7
cert-manager.io/cluster-issuer: letsencrypt-prod
8
- nginx.ingress.kubernetes.io/configuration-snippet: |
9
- if ($uri = "/") {
10
- if ($arg_kiosk = "") {
11
- if ($args = "") {
12
- return 302 $scheme://$host/?kiosk;
13
- }
14
- return 302 $scheme://$host$request_uri&kiosk;
15
+ nginx.ingress.kubernetes.io/server-snippet: |
+ # Only apply when the "kiosk" query parameter is missing.
+ if ($arg_kiosk = "") {
+ # The rewrite rule only matches the root ("/") path.
+ rewrite ^/$ $scheme://$host/?$args&kiosk? redirect;
16
}
17
spec:
18
rules:
0 commit comments