GithubHelp home page GithubHelp logo

dcarrillo / whatismyip Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 10.0 3.78 MB

Just another "what is my IP address" service, including DNS discovering, geolocation and headers information. Written in go with high performance in mind.

Home Page: https://ifconfig.es

License: Apache License 2.0

Dockerfile 1.48% Makefile 2.73% Go 95.79%
geolocation go golang whatismydns whatismyip

whatismyip's People

Contributors

dcarrillo avatar dependabot[bot] avatar pando85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

whatismyip's Issues

Template

Hi, can you share your template as example, as i can't find any template example.
Thank you

How to make a docker container out of this?

Hi,
This is really cool, exactly what I need, but I can't find any built docker container for it, and I haven't got a clue how to build one. I'm not a developer.

I followed instructions at https://stackify.com/docker-build-a-beginners-guide-to-building-docker-images which suggested this

Building Docker images
With Dockerfile written, you can build the image using the following command:

$ docker build .
We can see the image we just built using the command docker images.

$ docker images
If you run the command above, you will see something similar to the output below.

REPOSITORY TAG IMAGE ID CREATED SIZE
7b341adb0bf1 2 minutes ago 83.2MB

But that wasn't quite what I got:

sudo docker build .
[+] Building 10.9s (9/10)                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 370B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.1s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/golang:1.21-alpine                                              2.1s
 => [builder 1/4] FROM docker.io/library/golang:1.21-alpine@sha256:1c9cc949513477766da12bfa80541c4f24957323b0ee00  6.6s
 => => resolve docker.io/library/golang:1.21-alpine@sha256:1c9cc949513477766da12bfa80541c4f24957323b0ee00630a6ff4  0.0s
 => => sha256:3380a7e42c62007b14a7285882f764255d92e933ca7b31ae181f4b4dcd10fc06 1.16kB / 1.16kB                     0.0s
 => => sha256:ba29250af387de3f8daa10fe591b0911922513ea635082b90420baaa76fe814d 6.32kB / 6.32kB                     0.0s
 => => sha256:cc37b24bb09971feb8bf4882e861bce9db0c985a16a900adb0dc9de3f854243b 284.69kB / 284.69kB                 0.2s
 => => sha256:94517ad51c70c15adb540d431b757078be8f6214a2f1d2181afc9454fa65d281 67.00MB / 67.00MB                   1.8s
 => => sha256:2087470b845b2224ab3a61dafcdf2abbf9540f77be63368c3346b85ad2969fa6 155B / 155B                         0.2s
 => => sha256:1c9cc949513477766da12bfa80541c4f24957323b0ee00630a6ff4ccf334b75b 1.65kB / 1.65kB                     0.0s
 => => extracting sha256:cc37b24bb09971feb8bf4882e861bce9db0c985a16a900adb0dc9de3f854243b                          0.1s
 => => extracting sha256:94517ad51c70c15adb540d431b757078be8f6214a2f1d2181afc9454fa65d281                          3.4s
 => => extracting sha256:2087470b845b2224ab3a61dafcdf2abbf9540f77be63368c3346b85ad2969fa6                          0.0s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 370B                                                                                  0.0s
 => [stage-1 1/2] WORKDIR /app                                                                                     0.0s
 => [builder 2/4] WORKDIR /app                                                                                     0.3s
 => [builder 3/4] COPY . .                                                                                         0.1s
 => ERROR [builder 4/4] RUN apk add make git upx && make build VERSION=     && upx --best --lzma whatismyip        1.6s
------
 > [builder 4/4] RUN apk add make git upx && make build VERSION=     && upx --best --lzma whatismyip:
0.507 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
0.744 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
1.139 (1/12) Installing brotli-libs (1.0.9-r14)
1.163 (2/12) Installing libunistring (1.1-r1)
1.199 (3/12) Installing libidn2 (2.3.4-r1)
1.210 (4/12) Installing nghttp2-libs (1.55.1-r0)
1.219 (5/12) Installing libcurl (8.3.0-r0)
1.237 (6/12) Installing libexpat (2.5.0-r1)
1.247 (7/12) Installing pcre2 (10.42-r1)
1.274 (8/12) Installing git (2.40.1-r0)
1.376 (9/12) Installing make (4.4.1-r1)
1.387 (10/12) Installing libgcc (12.2.1_git20220924-r10)
1.400 (11/12) Installing libstdc++ (12.2.1_git20220924-r10)
1.435 (12/12) Installing upx (4.0.2-r0)
1.460 Executing busybox-1.36.1-r2.trigger
1.473 OK: 23 MiB in 28 packages
1.544 make: *** No rule to make target 'build'.  Stop.
------
Dockerfile:10
--------------------
   9 |
  10 | >>> RUN apk add make git upx && make build VERSION=$VERSION \
  11 | >>>     && upx --best --lzma whatismyip
  12 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add make git upx && make build VERSION=$VERSION     && upx --best --lzma whatismyip" did not complete successfully: exit code: 2

Any chance you could offer some guidance here? Most appreciated!

run in docker, got a container ip

I got a container ip if i run this app in docker. my real outer ip in X-Forwarded-For section. how can i fix, is there some setting?

Certificate invalid for ipv6.ifconfig.es

$ curl https://ipv6.ifconfig.es/
curl: (60) SSL: no alternative certificate subject name matches target host name 'ipv6.ifconfig.es'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Currently SAN includes ipv4.ifconfig.es but not ipv6.ifconfig.es

X509v3 Subject Alternative Name:
    DNS:ifconfig.es, DNS:ipv4.ifconfig.es, DNS:www.ifconfig.es

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.