drop v prefix from version numbers

This commit is contained in:
Michał Adamski
2025-02-01 10:24:35 +01:00
parent f10f066de0
commit 31235a9ed6
3 changed files with 11 additions and 7 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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())