Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Thumbs.db
# Logs
*.log

# Config files (actual configs with secrets)
config/ipwarn.conf

# Distribution / packaging
.Python
build/
Expand Down
37 changes: 22 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,35 @@ ipwarn is a simple Dynamic DNS Update Client.
### Docker

```bash
# Build the image
docker build -t ipwarn:2.0.0 .
# Get the example config from the repository or running container
docker run --rm ghcr.io/caldito/ipwarn:v2.0.0 cat /etc/ipwarn/ipwarn.conf > ipwarn.conf

# Run with your config file
docker run -d \
--name ipwarn \
--mount type=bind,source=$(pwd)/ipwarn.conf,target=/etc/ipwarn/ipwarn.conf \
ipwarn:2.0.0
```
# Edit it with your settings
vim ipwarn.conf # or your preferred editor

Or pull from GitHub Container Registry:
```bash
docker pull ghcr.io/caldito/ipwarn:2.0.0
# Run the container with your config
docker run -d \
--name ipwarn \
--mount type=bind,source=$(pwd)/ipwarn.conf,target=/etc/ipwarn/ipwarn.conf \
ghcr.io/caldito/ipwarn:2.0.0
ghcr.io/caldito/ipwarn:v2.0.0
```

**Note**: An example config is available at `config/ipwarn.conf.example` in this repository and at `/etc/ipwarn/ipwarn.conf` inside the container.

## Configuration

Create or edit `/etc/ipwarn/ipwarn.conf` with your settings:
The example config file is available at `config/ipwarn.conf.example` in this repository or at `/etc/ipwarn/ipwarn.conf` inside the container.

To create your config:
```bash
# From the repository
cp config/ipwarn.conf.example ipwarn.conf

# Or from a running container
docker run --rm ghcr.io/caldito/ipwarn:v2.0.0 cat /etc/ipwarn/ipwarn.conf > ipwarn.conf
```

Then edit `ipwarn.conf` with your settings:

```bash
# Check interval in seconds (default: 30)
Expand Down Expand Up @@ -75,8 +82,8 @@ LOG_LEVEL=INFO
**Tip**: Test your configuration first with `--dry-run` flag:
```bash
docker run --rm \
--mount type=bind,source=ipwarn.conf,target=/etc/ipwarn/ipwarn.conf \
ghcr.io/caldito/ipwarn:2.0.0 --dry-run --once
--mount type=bind,source=$(pwd)/ipwarn.conf,target=/etc/ipwarn/ipwarn.conf \
ghcr.io/caldito/ipwarn:v2.0.0 ipwarn --dry-run --once
```

## CLI Options
Expand Down
32 changes: 0 additions & 32 deletions config/ipwarn.conf

This file was deleted.

Loading