Auto-append port to --base-url so user only specifies hostname
This commit is contained in:
+2
-2
@@ -223,7 +223,7 @@ After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/home/youruser/.local/bin/ghrel serve --host 0.0.0.0 --port 8765 --base-url http://your-server-ip:8765
|
||||
ExecStart=/home/youruser/.local/bin/ghrel serve --host 0.0.0.0 --port 8765 --base-url http://your-server-ip
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
User=youruser
|
||||
@@ -245,7 +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)
|
||||
- When binding to `0.0.0.0`, use `--base-url` to set the correct hostname in feed links. The port is auto-appended from `--port`, so only the scheme and host are needed (e.g., `http://192.168.1.100`)
|
||||
- Combine with a reverse proxy (nginx, caddy) for external access:
|
||||
|
||||
```nginx
|
||||
|
||||
Reference in New Issue
Block a user