Add --base-url flag to serve command for correct feed links

This commit is contained in:
2026-07-28 12:55:56 +02:00
parent fda679f9ad
commit bddc6d2391
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -223,7 +223,7 @@ After=network-online.target
[Service]
Type=simple
ExecStart=/home/youruser/.local/bin/ghrel serve --host 127.0.0.1 --port 8765
ExecStart=/home/youruser/.local/bin/ghrel serve --host 0.0.0.0 --port 8765 --base-url http://your-server-ip:8765
Restart=on-failure
RestartSec=10
User=youruser
@@ -245,6 +245,7 @@ sudo systemctl status ghrel-serve.service
- The server reads the database on every request — no restart needed after `ghrel check` or daemon updates
- Use `--host 127.0.0.1` for local-only access, or `0.0.0.0` for network access
- When binding to `0.0.0.0`, use `--base-url` to set the correct URL in feed links (otherwise links will use `0.0.0.0` which is not accessible from clients)
- Combine with a reverse proxy (nginx, caddy) for external access:
```nginx