Renamed NW_INTERFACE and assigned a default value of 0.0.0.0

This commit is contained in:
dextreem 2022-09-23 15:13:04 +02:00 committed by Nicolas Meienberger
parent 678f9e41d6
commit c630f6c56e
4 changed files with 10 additions and 10 deletions

View File

@ -17,9 +17,9 @@
"form_fields": [ "form_fields": [
{ {
"type": "ip", "type": "ip",
"label": "Network Interface (use 0.0.0.0 for all)", "label": "Network Interface (default: 0.0.0.0)",
"required": true, "required": false,
"env_variable": "NW_INTERFACE" "env_variable": "NETWORK_INTERFACE"
} }
] ]
} }

View File

@ -11,6 +11,6 @@ services:
networks: networks:
- tipi_main_network - tipi_main_network
ports: ports:
- ${NW_INTERFACE}:53:53/tcp - ${NETWORK_INTERFACE:-0.0.0.0}:53:53/tcp
- ${NW_INTERFACE}:53:53/udp - ${NETWORK_INTERFACE:-0.0.0.0}:53:53/udp
- ${APP_PORT}:80 - ${APP_PORT}:80

View File

@ -25,9 +25,9 @@
}, },
{ {
"type": "ip", "type": "ip",
"label": "Network Interface (use 0.0.0.0 for all)", "label": "Network Interface (default: 0.0.0.0)",
"required": true, "required": false,
"env_variable": "NW_INTERFACE" "env_variable": "NETWORK_INTERFACE"
} }
] ]
} }

View File

@ -21,8 +21,8 @@ services:
- 127.0.0.1 - 127.0.0.1
# - 10.21.21.200 # Points to unbound # - 10.21.21.200 # Points to unbound
ports: ports:
- ${NW_INTERFACE}:53:53/tcp - ${NETWORK_INTERFACE:-0.0.0.0}:53:53/tcp
- ${NW_INTERFACE}:53:53/udp - ${NETWORK_INTERFACE:-0.0.0.0}:53:53/udp
- ${APP_PORT}:80 - ${APP_PORT}:80
volumes: volumes:
- ${APP_DATA_DIR}/data/pihole:/etc/pihole - ${APP_DATA_DIR}/data/pihole:/etc/pihole