mxssl / ntwrk

Check your external IP address http://sre.monster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ntwrk

This is a simple app that you can use to check your external IP address. Hosted on http://sre.monster

Usage:

curl sre.monster

Install

If you want to run your own instance of the app, create a .env file with the following content:

# The app starts on this port
PORT=80
# The mode can be set to either "native" or "cloudflare"
# If you use "cloudflare" mode, then the app responds with the value of the HTTP header "CF-Connecting-IP"
# https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-connecting-ip
MODE=native

Create docker-compose.yml file:

version: '3'

services:
  ntwrk:
    image: mxssl/ntwrk:0.1.7
    env_file: .env
    restart: always
    # For "native" mode, you need to use the host network mode
    network_mode: host

Pull and start the container:

docker compose pull
docker compose up -d
docker compose logs

About

Check your external IP address http://sre.monster


Languages

Language:Go 66.6%Language:Makefile 20.8%Language:Dockerfile 12.6%