mirror of
https://github.com/JuLi0n21/shit-cache.git
synced 2026-06-05 03:26:29 +00:00
readme and workflow
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user