From 2bf7c84e3bada92f0de8f90d975491938757aa4a Mon Sep 17 00:00:00 2001 From: Andrei Alexandru Date: Mon, 20 Oct 2025 16:48:34 +0300 Subject: [PATCH] detailed project description and setup instructions for NewProxy Server - Added README detailing project overview, setup, and usage - Described proxy features (file forwarding, release tracking, download stats) - Included build and run instructions for both local and Docker environments - Specified Go version requirements and dependencies - Added credits and links to core libraries --- readme.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..bb401cc --- /dev/null +++ b/readme.md @@ -0,0 +1,59 @@ +# Go Proxy Server (Gin-based) for ClassiCube-PPC + +A lightweight HTTP proxy server written in Go using the Gin framework. It supports file forwarding, release version tracking, and download statistics, enabling the download of ClassiCube-PPC resources on older systems (it can also be used for other purposes). + +--- + +## 🚀 Features + +- Proxy file downloads via `?url=...` +- Track active downloads and total bytes transferred +- Serve latest release info from `release.json` + + +--- +## Requirements +- Go 1.21 or newer +- Internet access for proxying external URLs + +--- +# Setup +```bash +git clone https://github.com/andreiixedev/Proxy-PPC.git +cd NewProxy +go mod init newproxy +go get github.com/gin-gonic/gin@latest + +>> Run the Server +go run main.go +``` + +Server will start on http://localhost:5090 + +# Build Executable (Windows) +```bash +go build -o proxy.exe main.go +``` +Then run: +```bash +./proxy.exe +``` + +# 🐳 Docker (Optional) +```bash +FROM golang:1.21-alpine +WORKDIR /app +COPY . . +RUN go build -o proxy . +EXPOSE 5090 +CMD ["./proxy"] +``` + +Build and run: +```bash +docker build -t newproxy . +docker run -p 5090:5090 newproxy +``` + +# Credits +Built with [gin](https://github.com/gin-gonic/gin) and ❤️ by Andreiixe. \ No newline at end of file