feat: add initial proxy management functionality and CI configuration
Build and Push to Registry / build (push) Successful in 55s

This commit is contained in:
2026-04-11 23:20:00 +02:00 Unverified
parent 869a410f96
commit 1b224d183b
5 changed files with 53 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Build and Push to Registry
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: git.reloia.uk
username: reloia
password: ${{ secrets.LOGIN_TOKEN }}
- name: Build and Push (Shell)
run: |
IMAGE_NAME="git.reloia.uk/reloia/theplug:latest"
echo "Building $IMAGE_NAME..."
docker build -t "$IMAGE_NAME" .
echo "Pushing $IMAGE_NAME..."
docker push "$IMAGE_NAME"
+6 -1
View File
@@ -26,4 +26,9 @@ docker compose up -d mongodb redis
fastapi dev src/main.py fastapi dev src/main.py
``` ```
FastAPI docs: `http://localhost:3671/docs` accedi a FastAPI su: [FastAPI docs](http://localhost:3671/docs)
## Documentazione per Sviluppo
[MitMProxy examples](https://docs.mitmproxy.org/stable/addons/examples/)
View File
+12
View File
@@ -0,0 +1,12 @@
from typing import Literal
from utils.proxy.types import ServiceConfig
async def create_proxy(
port: int,
name: str,
service: ServiceConfig,
proxy_type: Literal["easy", "manual"]
):
return
+6
View File
@@ -0,0 +1,6 @@
from typing import TypedDict
class ServiceConfig(TypedDict):
address: str
port: int