Mapping fail2ban blogpost

This commit is contained in:
David 2021-08-31 02:20:34 +02:00
commit 90b1d205e0
3 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,5 @@
{{- .Scratch.Set "path" (.Get 0) -}}
{{- if hasPrefix (.Scratch.Get "path") "/" -}}
{{- .Scratch.Set "path" (slicestr (.Scratch.Get "path") 1) -}}
{{- end -}}
{{- .Scratch.Get "path" | absURL -}}