feat: support UDP proxy of port 2022 and 2023 for P2Panda apps #70

Merged
p4u1 merged 3 commits from support-p2panda into master 2025-12-22 12:37:51 +00:00
5 changed files with 27 additions and 3 deletions

View File

@ -16,7 +16,7 @@ steps:
STACK_NAME: traefik
LETS_ENCRYPT_ENV: production
LETS_ENCRYPT_EMAIL: helo@autonomic.zone
TRAEFIK_YML_VERSION: v22
TRAEFIK_YML_VERSION: v26
FILE_PROVIDER_YML_VERSION: v10
ENTRYPOINT_VERSION: v4
trigger:

View File

@ -131,6 +131,10 @@ COMPOSE_FILE="compose.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.gitea.yml"
# GITEA_SSH_ENABLED=1
## P2Panda UDP
# COMPOSE_FILE="$COMPOSE_FILE:compose.p2panda.yml"
# P2PANDA_ENABLED=1
## Foodsoft SMTP
# COMPOSE_FILE="$COMPOSE_FILE:compose.foodsoft.yml"
# FOODSOFT_SMTP_ENABLED=1

View File

@ -1,3 +1,3 @@
export TRAEFIK_YML_VERSION=v25
export TRAEFIK_YML_VERSION=v26
export FILE_PROVIDER_YML_VERSION=v10
export ENTRYPOINT_VERSION=v5

14
compose.p2panda.yml Normal file
View File

@ -0,0 +1,14 @@
version: "3.8"
services:
app:
environment:
- P2PANDA_ENABLED
ports:
- target: 2022
published: 2022
protocol: udp
mode: host
- target: 2023
published: 2023
protocol: udp
mode: host

View File

@ -1,7 +1,7 @@
---
core:
defaultRuleSyntax: v2
log:
level: {{ env "LOG_LEVEL" }}
maxAge: {{ env "LOG_MAX_AGE" }}
@ -37,6 +37,12 @@ entrypoints:
gitea-ssh:
address: ":2222"
{{ end }}
{{ if eq (env "P2PANDA_ENABLED") "1" }}
decentral1se marked this conversation as resolved
Review

Oh wait a sec, you need to bump the config version:

abra.sh Line 1 in 88502ecda4
export TRAEFIK_YML_VERSION=v25

Oh wait a sec, you need to bump the config version: > https://git.coopcloud.tech/coop-cloud/traefik/src/commit/88502ecda424fff86eef2d76f1ef6c2e7c44539f/abra.sh#L1
Review

For context: the env var need to be increased rverytime the file gets changed. This is necessary for all template files

For context: the env var need to be increased rverytime the file gets changed. This is necessary for all template files
Review

Ok, I've bumped this. I've also bumped it in the drone file, which was a bit out of date, hopefully that works.

Ok, I've bumped this. I've also bumped it in the drone file, which was a bit out of date, hopefully that works.
p2panda-udp-v4:
address: ":2022/udp"
p2panda-udp-v6:
address: ":2023/udp"
{{ end }}
{{ if eq (env "GARAGE_RPC_ENABLED") "1" }}
garage-rpc:
address: ":3901"