From fb3ec734811db27ca23e5e38805315f4c4879332 Mon Sep 17 00:00:00 2001 From: dextreem Date: Fri, 23 Sep 2022 10:46:43 +0200 Subject: [PATCH] Added form field for network interface to adguard --- apps/adguard/config.json | 9 ++++++++- apps/adguard/docker-compose.yml | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/adguard/config.json b/apps/adguard/config.json index 943a9eb9..3bfecb35 100644 --- a/apps/adguard/config.json +++ b/apps/adguard/config.json @@ -14,5 +14,12 @@ "requirements": { "ports": [53] }, - "form_fields": [] + "form_fields": [ + { + "type": "ip", + "label": "Network Interface (use 0.0.0.0 for all)", + "required": true, + "env_variable": "NW_INTERFACE" + } + ] } diff --git a/apps/adguard/docker-compose.yml b/apps/adguard/docker-compose.yml index f5aeb613..b1d911ef 100644 --- a/apps/adguard/docker-compose.yml +++ b/apps/adguard/docker-compose.yml @@ -11,6 +11,6 @@ services: networks: - tipi_main_network ports: - - 53:53/tcp - - 53:53/udp + - ${NW_INTERFACE}:53:53/tcp + - ${NW_INTERFACE}:53:53/udp - ${APP_PORT}:80