apiVersion: v1 kind: ConfigMap metadata: name: html-template data: index.html: |
{{ .IP }}
$ http {{ .Host }}/country {{ .Country }} $ http {{ .Host }}/country-iso {{ .CountryISO }}{{ end }} {{ if .City }}
$ http {{ .Host }}/city {{ .City }}{{ end }} {{ if .ASN }}
$ http {{ .Host }}/asn {{ .ASN }} {{ if .ASNOrg }}
Looks like you're with {{ .ASNOrg }}
{{ end }} {{ end }}$ http {{ .Host }}/json {{ .JSON }}{{ if .Port }}
{{ .Host }} {{ .Host }}/ip {{ .Host }}/json {{ .Host }}/country {{ .Host }}/country-iso {{ .Host }}/city {{ .Host }}/asn {{ .Host }}/coordinates {{ .Host }}/port/$number{{ end }}