feat: add initial proxy management functionality and CI configuration
Build and Push to Registry / build (push) Successful in 55s
Build and Push to Registry / build (push) Successful in 55s
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -26,4 +26,9 @@ docker compose up -d mongodb redis
|
||||
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/)
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
from typing import TypedDict
|
||||
|
||||
|
||||
class ServiceConfig(TypedDict):
|
||||
address: str
|
||||
port: int
|
||||
Reference in New Issue
Block a user