mirror of https://github.com/mpolden/echoip
Implemented feedback
This commit is contained in:
parent
22bc011be6
commit
39a901ce66
|
@ -1,18 +0,0 @@
|
||||||
# Build
|
|
||||||
FROM golang:1.13-buster AS build
|
|
||||||
WORKDIR /go/src/github.com/mpolden/echoip
|
|
||||||
COPY . .
|
|
||||||
# Must build without cgo because libc is unavailable in runtime image
|
|
||||||
ENV GO111MODULE=on CGO_ENABLED=0
|
|
||||||
RUN make
|
|
||||||
|
|
||||||
# Run
|
|
||||||
FROM scratch
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
COPY --from=build /go/bin/echoip /opt/echoip/
|
|
||||||
COPY html /opt/echoip/html
|
|
||||||
COPY data /opt/echoip/data
|
|
||||||
|
|
||||||
WORKDIR /opt/echoip
|
|
||||||
ENTRYPOINT ["/opt/echoip/echoip"]
|
|
|
@ -6,7 +6,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="ifconfig. What is my IP address? — The best tool to find your own IP address, and information about it."
|
content="{{ .Host }} • What is my IP address? — The best tool to find your own IP address, and information about it."
|
||||||
/>
|
/>
|
||||||
<link rel="canonical" href="https://ifconfig.co/" />
|
<link rel="canonical" href="https://ifconfig.co/" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
@ -56,9 +56,9 @@
|
||||||
<div class="pure-u pure-u-md-1">
|
<div class="pure-u pure-u-md-1">
|
||||||
<p>
|
<p>
|
||||||
This site is graciously hosted by<br />
|
This site is graciously hosted by<br />
|
||||||
<a href="https://www.leaf.cloud?utm_source=ifconfig"
|
<a href="https://www.leaf.cloud?utm_source=ifconfig">
|
||||||
>Leafcloud – The Truly Sustainable Cloud</a
|
Leafcloud – The Truly Sustainable Cloud
|
||||||
>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -174,7 +174,7 @@
|
||||||
MaxMind, available from
|
MaxMind, available from
|
||||||
<a href="https://www.maxmind.com">www.maxmind.com</a>
|
<a href="https://www.maxmind.com">www.maxmind.com</a>
|
||||||
</p>
|
</p>
|
||||||
{{ end }} {{ if .City }}
|
{{ end }} {{ if .Latitude }}
|
||||||
<div class="pure-u-1 pure-u-md-1-1">
|
<div class="pure-u-1 pure-u-md-1-1">
|
||||||
<h2>Map</h2>
|
<h2>Map</h2>
|
||||||
<iframe
|
<iframe
|
||||||
|
@ -234,14 +234,14 @@
|
||||||
class="button widget-select"
|
class="button widget-select"
|
||||||
onclick="changeInput(this.name, this)"
|
onclick="changeInput(this.name, this)"
|
||||||
>
|
>
|
||||||
ASN
|
asn
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
name="json"
|
name="json"
|
||||||
class="button widget-select"
|
class="button widget-select"
|
||||||
onclick="changeInput(this.name, this)"
|
onclick="changeInput(this.name, this)"
|
||||||
>
|
>
|
||||||
JSON
|
json
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
name="port"
|
name="port"
|
||||||
|
|
Loading…
Reference in New Issue