Fix yaml indentation in server-snippet doc

Copy / Pasting the code made errors when injecting config in
kubernetes cluster. With this change, annotations now works
in ingresses metadata.
This commit is contained in:
Yann 2018-10-03 19:31:14 +02:00
parent d9f58144eb
commit 6d9977b622

View file

@ -295,15 +295,15 @@ kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/server-snippet: |
set $agentflag 0;
set $agentflag 0;
if ($http_user_agent ~* "(Mobile)" ){
if ($http_user_agent ~* "(Mobile)" ){
set $agentflag 1;
}
}
if ( $agentflag = 1 ) {
if ( $agentflag = 1 ) {
return 301 https://m.example.com;
}
}
```
!!! attention