fix(wg-easy): Fix UDP Port (#19679)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ When chaning the UDP Port. Wg-easy stops working. Reason: Wg-easy
always uses 51820 inside the container. WG-PORT is only used for
generating the QR-Codes and Configs. Added TargetPort to fix this issue.
From wg-easy README: 
> The public UDP port of your VPN server. WireGuard will always listen
on 51820 inside the Docker container.

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [x] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
alfi0812 2024-03-23 17:27:47 +01:00 committed by GitHub
parent 99d3fedd03
commit 66db39bb99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 1 deletions

View File

@ -35,4 +35,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/wg-easy
- https://ghcr.io/wg-easy/wg-easy
type: application
version: 12.1.1
version: 12.1.2

View File

@ -60,6 +60,18 @@ questions:
private: true
required: true
default: ""
- variable: LANG
label: "Language"
description: "WebUI Language"
schema:
type: string
default: "en"
- variable: UI_TRAFFIC_STATS
label: "Detailed Traffic Stats"
description: "Enable detailed Traffic Stats in the WebUI"
schema:
type: boolean
default: false
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}

View File

@ -25,6 +25,7 @@ service:
vpn:
enabled: true
protocol: udp
targetPort: 51820
port: 51820
workload:
main:
@ -48,6 +49,8 @@ workload:
WG_DEFAULT_DNS: "1.1.1.1"
WG_ALLOWED_IPS: "0.0.0.0/0, ::/0"
PASSWORD: "secretpass"
LANG: "en"
UI_TRAFFIC_STATS: "false"
persistence:
config:
enabled: true