https://github.com/10nates/logmyip
A voluntary IP logging website
https://github.com/10nates/logmyip
go http http-server ip redis
Last synced: about 1 year ago
JSON representation
A voluntary IP logging website
- Host: GitHub
- URL: https://github.com/10nates/logmyip
- Owner: 10Nates
- License: mit
- Created: 2022-03-19T03:36:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T18:47:34.000Z (about 1 year ago)
- Last Synced: 2025-03-08T19:30:24.813Z (about 1 year ago)
- Topics: go, http, http-server, ip, redis
- Language: Go
- Homepage:
- Size: 1.68 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logmyip
A voluntary IP logging website.
You can visit at .
## Docker
Everything is handled in Docker Compose
`REDIS_PASSWORD=MyPassword docker compose up`
This will also create a Redis instance and a volume to go with it. Data is stored persistently there.
Redis is not directly exposed to the user and you will have to enter the redis container to use redis-cli.
## Compiling (No Docker)
Simple compile command to dist/ folder
`go build -ldflags="-s -w" -o dist/logmyip-server main.go pages.go data.go`
## Running (No Docker)
A Redis instance is required as one is not started automatically in this way.
The environment variable "RedisPass" is required to run.
`RedisAddr=localhost:6379 RedisPass=MyPassword ./logmyip-server`