CAHNGE *-DOMAIN to *-BASEURL to handle protocols better #5

This commit is contained in:
Caffeine Fueled 2025-10-17 23:17:05 +02:00
parent 03b21d932e
commit 028a41d86a
Signed by: cf7
GPG key ID: CA295D643074C68C
3 changed files with 42 additions and 24 deletions

View file

@ -1,4 +1,4 @@
# Project Name
# Aukpad Paste Proxy
This proxy allows the paste creation from temporary aukpads via linedump. Can be used as a 'GUI' for linedump.
@ -26,19 +26,42 @@ This proxy allows the paste creation from temporary aukpads via linedump. Can be
## Installation
WIP
### Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| `PAD_BASEURL` | Source paste service base URL including protocol | `https://aukpad.com` |
| `DUMP_BASEURL` | Destination paste service base URL including protocol | `https://linedump.com` |
| `PROXY_BASEURL` | This proxy's base URL for documentation including protocol | `https://bin.aukpad.com` |
### Manual Container Run
```bash
# Using variables
$CONTAINER_CMD run --name ${CONTAINER_NAME} \
-p 127.0.0.1:${PORT_HOST}:${PORT_CONTAINER} \
-e PAD_DOMAIN="${PAD_DOMAIN}" \
-e DUMP_DOMAIN="${DUMP_DOMAIN}" \
-e PROXY_DOMAIN="${PROXY_DOMAIN}" \
-e PAD_BASEURL="${PAD_BASEURL}" \
-e DUMP_BASEURL="${DUMP_BASEURL}" \
-e PROXY_BASEURL="${PROXY_BASEURL}" \
--read-only \
--security-opt no-new-privileges:true \
--cap-drop ALL \
--user 1000:1000 \
-d ${IMAGE_NAME}:latest
# Example with Podman
podman run --name aukpad-paste-proxy \
--replace \
-p 127.0.0.1:8001:8000 \
-e PAD_BASEURL="https://aukpad.com" \
-e DUMP_BASEURL="https://linedump.com" \
-e PROXY_BASEURL="http://127.0.0.1:8001" \
--read-only \
--security-opt no-new-privileges:true \
--cap-drop ALL \
--user 1000:1000 \
-d localhost/aukpad-proxy:dev
```
---