From 66db39bb99e3022e1a7fa6798f72379b3d75c4d8 Mon Sep 17 00:00:00 2001 From: alfi0812 <43101280+alfi0812@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:27:47 +0100 Subject: [PATCH] fix(wg-easy): Fix UDP Port (#19679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ 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?** **📃 Notes:** **✔️ 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._ --- charts/stable/wg-easy/Chart.yaml | 2 +- charts/stable/wg-easy/questions.yaml | 12 ++++++++++++ charts/stable/wg-easy/values.yaml | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/charts/stable/wg-easy/Chart.yaml b/charts/stable/wg-easy/Chart.yaml index 3812fe66404..c9e0e125042 100644 --- a/charts/stable/wg-easy/Chart.yaml +++ b/charts/stable/wg-easy/Chart.yaml @@ -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 diff --git a/charts/stable/wg-easy/questions.yaml b/charts/stable/wg-easy/questions.yaml index d7c38496c3b..4a58795a5bf 100644 --- a/charts/stable/wg-easy/questions.yaml +++ b/charts/stable/wg-easy/questions.yaml @@ -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} diff --git a/charts/stable/wg-easy/values.yaml b/charts/stable/wg-easy/values.yaml index 373b40d8da0..40727ae8993 100644 --- a/charts/stable/wg-easy/values.yaml +++ b/charts/stable/wg-easy/values.yaml @@ -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