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
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ clean:
@rm -rf target/release/secrds-*

test:
@echo "Running tests..."
@cargo test
@echo "Running Go tests..."
@cd secrds-agent && go test ./... || true
@cd secrds-cli && go test ./... || true

fmt:
@echo "Formatting code..."
@cargo fmt

clippy:
@echo "Running clippy..."
@cargo clippy -- -D warnings
@echo "Formatting Go code..."
@cd secrds-agent && go fmt ./... || true
@cd secrds-cli && go fmt ./... || true

docker-build:
@echo "Building Docker image..."
Expand Down
126 changes: 0 additions & 126 deletions QUICK_START.md

This file was deleted.

31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,42 @@ secrds restart
- Logs: `/var/log/secrds/agent.log`
- Binaries: `/usr/local/bin/secrds-agent`, `/usr/local/bin/secrds`

### Production Deployment

1. **Build the project:**
```bash
make build
```

2. **Install:**
```bash
sudo ./install.sh
```

3. **Configure Telegram (required for alerts):**
```bash
sudo nano /etc/secrds/config.yaml
# Set telegram.bot_token and telegram.chat_id
```

4. **Start and enable service:**
```bash
sudo systemctl start secrds
sudo systemctl enable secrds
```

5. **Verify it's running:**
```bash
secrds status
```

### Troubleshooting
- Kernel 5.8+ required: `uname -r`
- Build tools: ensure `go`, `clang`, and `llvm` are installed
- Telegram alerts: verify `TELEGRAM_BOT_TOKEN` and `TELEGRAM_CHAT_ID` are set and correct
- IP blocking: requires `iptables` and root; see warnings in logs if a rule fails
- View logs: `journalctl -u secrds -f`
- Check alerts: `secrds alerts`

---

Expand Down
180 changes: 0 additions & 180 deletions TESTING.md

This file was deleted.

Loading
Loading