From 105f5607d1200f7d62b8e631956c9ac27f5c8424 Mon Sep 17 00:00:00 2001 From: JuLi0n21 Date: Tue, 28 Apr 2026 14:35:50 +0200 Subject: [PATCH] readme and workflow --- .github/workflows/shit-proxy.yml | 43 ++++++++++++++++++++++++++++++++ README.md | 21 ++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/shit-proxy.yml create mode 100644 README.md diff --git a/.github/workflows/shit-proxy.yml b/.github/workflows/shit-proxy.yml new file mode 100644 index 0000000..b118203 --- /dev/null +++ b/.github/workflows/shit-proxy.yml @@ -0,0 +1,43 @@ +name: Build Backend + +on: + push: + paths: + - ".github/workflows/shit-proxy.yml" + pull_request: + workflow_dispatch: + +jobs: + build-backend: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: "true" + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.26.2" + + - name: Build + run: | + CGO_ENABLED=0 go build -ldflags="-w -s" -o shit-proxy + + - name: Log in to Docker registry + uses: docker/login-action@v3 + with: + registry: https://docker.illegalesachen.download + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and Push + uses: docker/build-push-action@v6 + with: + file: Dockerfile + push: true + tags: | + docker.illegalesachen.download/shit-proxy:${{ github.sha }} + docker.illegalesachen.download/shit-proxy:latest \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3cc4e94 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# shit-cache + +mirco programm to proxy files from an origin to ur hearts content, to either save on bandwidth or have them incase of origin downtime + +## Usage: + +pass the base64 encoded url u want to proxy to the webserver and ur done + +`cache.example.com/{base64encodedUrl}` + +## Security: + +if u plan to use this on a public domain u can limit the domains its allowed to fetch from with the `ALLOWED_DOMAINS` enviorment variable, subdomains are INCLUDED by default, if none are provided every domain is fair game + +`ALLOWED_DOMAINS=mycoolsite.com,example.com` + +## Additional stuff + +- this is abadonware and will not be maintained +- ai was used in the creation process +- docker images will not be provided, u can build them urself \ No newline at end of file