mpolden / echoip

IP address lookup service
https://ifconfig.co
BSD 3-Clause "New" or "Revised" License
4.02k stars 526 forks source link

Docker Image #132

Open ragyabraham opened 3 years ago

ragyabraham commented 3 years ago

I am currently attempting to self host the docker image. However, after self deploying the docker image on k8s infrastructure when i make a call (internal network call RFC 1918) to the service the response is merely an echo that contains the IP i sent in decimal format.

Any idea whats going on there? Or what i need to do to get this working?

leros1337 commented 3 years ago

1) set parameter '-H X-Forwarded-For' at start 2) install ingress-nginx inside cluster 3) configure additional with configmap, example

apiVersion: v1
kind: ConfigMap
metadata:
  name: headers
data:
  use-forwarded-headers: "true"
  enable-real-ip: "true"