mirror of
https://github.com/meehow/privtracker.git
synced 2026-09-02 22:56:07 +08:00
drop v prefix from version numbers
This commit is contained in:
2
.github/workflows/docker-build-push.yml
vendored
2
.github/workflows/docker-build-push.yml
vendored
@@ -3,7 +3,7 @@ name: Docker Build & Push (Tags Only)
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*' # triggers for version tag pushed
|
||||
- '[0-9]*' # triggers for version tag pushed
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
|
||||
14
README.md
14
README.md
@@ -13,17 +13,21 @@ PrivTracker solves this by enabling private torrent sharing within a trusted gro
|
||||
Using UPnP, most torrent clients can automatically handle port opening, and only one person in the group needs an open port for everyone to download.
|
||||
Unlike public trackers, PrivTracker shares peers' IPs only within the group and keeps files off public networks like DHT, ensuring privacy and efficient sharing.
|
||||
|
||||
### Build & install
|
||||
### Build
|
||||
```bash
|
||||
go install github.com/meehow/privtracker@latest
|
||||
git clone https://github.com/meehow/privtracker.git
|
||||
cd privtracker
|
||||
make build
|
||||
```
|
||||
|
||||
You can also download pre-built binaries for your system from the [Releases page](https://github.com/meehow/privtracker/releases).
|
||||
|
||||
### Run PrivTracker without TLS
|
||||
|
||||
By default, PrivTracker will use port 1337.
|
||||
|
||||
```bash
|
||||
~/go/bin/privtracker
|
||||
./privtracker
|
||||
```
|
||||
|
||||
### Run PrivTracker with automatic TLS / HTTPS
|
||||
@@ -32,8 +36,8 @@ If you change the port to 443, PrivTracker will enable automatic TLS handling us
|
||||
Port 443 must be accessible from the internet, and you must have a domain name pointing to your server.
|
||||
|
||||
```bash
|
||||
sudo setcap cap_net_bind_service=+ep ~/go/bin/privtracker # allow binding to ports below 1024
|
||||
PORT=443 ~/go/bin/privtracker
|
||||
sudo setcap cap_net_bind_service=+ep privtracker # allow binding to ports below 1024
|
||||
PORT=443 ./privtracker
|
||||
```
|
||||
|
||||
### Example Systemd service
|
||||
|
||||
@@ -31,7 +31,7 @@ func logRequestMiddleware(next http.Handler) http.Handler {
|
||||
wrapper := &ResponseWriterWrapper{ResponseWriter: w, StatusCode: http.StatusOK}
|
||||
timer := time.Now()
|
||||
next.ServeHTTP(wrapper, r)
|
||||
fmt.Printf("%d - %5dµs %47s %4s %42s %6d %11s - %s - %s\n",
|
||||
fmt.Printf("%d - %5dµs %21s %4s %42s %6d %11s - %s - %s\n",
|
||||
wrapper.StatusCode, time.Since(timer).Microseconds(), r.RemoteAddr,
|
||||
r.Method, r.URL.Path, wrapper.BytesSent,
|
||||
wrapper.Header().Get("X-PrivTracker"), r.Referer(), r.UserAgent())
|
||||
|
||||
Reference in New Issue
Block a user