diff --git a/appstore/pi-hole-dhcp/2024.07.0/.env b/appstore/pi-hole-dhcp/2024.07.0/.env new file mode 100644 index 00000000..336d74c9 --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/.env @@ -0,0 +1,39 @@ +# 数据持久化路径 [必填] +PIHOLE_ROOT_PATH=/home/pihole + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8080 + +# WebUI 密码 [必填] +WEBPASSWORD= + +# 监听地址 [必填] +DNSMASQ_LISTENING=all + +# 本地 IPv4 地址 [必填] +FTLCONF_LOCAL_IPV4=127.0.0.1 + +# 上游 DNS 服务器 [必填] +PIHOLE_DNS_=1.1.1.1;8.8.8.8;114.114.114.114; + +# DHCP 起始地址 [必填] +DHCP_START= + +# DHCP 结束地址 [必填] +DHCP_END= + +# DHCP 路由/网关 IP [必填] +DHCP_ROUTER= + +# DHCP 租约时间 [必填] +DHCP_LEASETIME=24 + +# DHCP 域名 [必填] +PIHOLE_DOMAIN=lan + +# IPv6 支持 [必填] +IPv6=true + +# DHCP IPv6 支持 [必填] +DHCP_IPv6=true + diff --git a/appstore/pi-hole-dhcp/2024.07.0/data.yml b/appstore/pi-hole-dhcp/2024.07.0/data.yml new file mode 100644 index 00000000..419bd471 --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/data.yml @@ -0,0 +1,111 @@ +additionalProperties: + formFields: + - default: "/home/pihole" + edit: true + envKey: PIHOLE_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: WEBPASSWORD + labelZh: WebUI 密码 + labelEn: WebUI password + required: true + type: text + - default: "all" + edit: true + envKey: DNSMASQ_LISTENING + labelZh: 监听地址 + labelEn: Listening address + required: true + type: select + values: + - label: all + value: "all" + - label: local + value: "local" + - label: single + value: "single" + - default: "127.0.0.1" + edit: true + envKey: FTLCONF_LOCAL_IPV4 + labelZh: 本地 IPv4 地址 + labelEn: Local IPv4 address + required: true + type: text + - default: "1.1.1.1;8.8.8.8;114.114.114.114;" + edit: true + envKey: PIHOLE_DNS_ + labelZh: 上游 DNS 服务器 + labelEn: Upstream DNS server + required: true + type: text + - default: "" + edit: true + envKey: DHCP_START + labelZh: DHCP 起始地址 + labelEn: DHCP start address + required: true + type: text + - default: "" + edit: true + envKey: DHCP_END + labelZh: DHCP 结束地址 + labelEn: DHCP end address + required: true + type: text + - default: "" + edit: true + envKey: DHCP_ROUTER + labelZh: DHCP 路由/网关 IP + labelEn: DHCP router/gateway IP + required: true + type: text + - default: 24 + edit: true + envKey: DHCP_LEASETIME + labelZh: DHCP 租约时间 + labelEn: DHCP lease time + required: true + type: number + - default: "lan" + edit: true + envKey: PIHOLE_DOMAIN + labelZh: DHCP 域名 + labelEn: DHCP domain + required: true + type: text + - default: "true" + edit: true + envKey: IPv6 + labelZh: IPv6 支持 + labelEn: IPv6 support + required: true + type: select + values: + - label: 开启 IPV6 + value: "true" + - label: 关闭 IPV6 + value: "false" + - default: "true" + edit: true + envKey: DHCP_IPv6 + labelZh: DHCP IPv6 支持 + labelEn: DHCP IPv6 support + required: true + type: select + values: + - label: 开启 DHCP IPV6 + value: "true" + - label: 关闭 DHCP IPV6 + value: "false" diff --git a/appstore/pi-hole-dhcp/2024.07.0/docker-compose.yml b/appstore/pi-hole-dhcp/2024.07.0/docker-compose.yml new file mode 100644 index 00000000..b3fb152e --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/docker-compose.yml @@ -0,0 +1,26 @@ +networks: + 1panel-network: + external: true +services: + pihole: + container_name: pi-hole-dhcp + env_file: + - ./envs/global.env + - .env + environment: + - WEB_PORT=${PANEL_APP_PORT_HTTP} + - TZ=Asia/Shanghai + - DHCP_ACTIVE=true + expose: + - 67/udp + - 53 + - 53/udp + - ${PANEL_APP_PORT_HTTP} + image: pihole/pihole:2024.07.0 + labels: + createdBy: Apps + network_mode: host + restart: always + volumes: + - ${PIHOLE_ROOT_PATH}/pihole:/etc/pihole + - ${PIHOLE_ROOT_PATH}/dnsmasq.d:/etc/dnsmasq.d diff --git a/appstore/pi-hole-dhcp/2024.07.0/envs/default.env b/appstore/pi-hole-dhcp/2024.07.0/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/pi-hole-dhcp/2024.07.0/envs/global.env b/appstore/pi-hole-dhcp/2024.07.0/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/pi-hole-dhcp/2024.07.0/scripts/init.sh b/appstore/pi-hole-dhcp/2024.07.0/scripts/init.sh new file mode 100644 index 00000000..07fb8c3f --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/pi-hole-dhcp/2024.07.0/scripts/uninstall.sh b/appstore/pi-hole-dhcp/2024.07.0/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/pi-hole-dhcp/2024.07.0/scripts/upgrade.sh b/appstore/pi-hole-dhcp/2024.07.0/scripts/upgrade.sh new file mode 100644 index 00000000..07fb8c3f --- /dev/null +++ b/appstore/pi-hole-dhcp/2024.07.0/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/pi-hole-dhcp/README.md b/appstore/pi-hole-dhcp/README.md new file mode 100644 index 00000000..be1cc8a9 --- /dev/null +++ b/appstore/pi-hole-dhcp/README.md @@ -0,0 +1,23 @@ +# Pi-hole (DHCP) + +Pi-hole 是一个 Linux 网络级别的广告和互联网追踪器拦截应用程序,充当一个 DNS 沉洞 以及可选的 DHCP 服务器,旨在用于私有网络。 + +![Pi-hole](https://file.lifebus.top/imgs/pi_hole_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +Pi-hole 是一个 Linux 网络级广告和互联网跟踪器阻止应用程序,它充当 DNS 沉洞和可选的 DHCP +服务器,旨在在专用网络上使用。它专为具有网络功能的低功耗嵌入式设备(例如 Raspberry Pi)而设计,但几乎可以安装在任何 Linux +机器上。 + +## 安装说明 + +> 当前应用提供 DHCP 功能,且运行在 `Host` 模式下,因此需要关闭宿主机的 DHCP 服务。 +> +> 请提前关闭宿主机的 `80` `53` `67` 端口占用。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/appstore/pi-hole-dhcp/data.yml b/appstore/pi-hole-dhcp/data.yml new file mode 100644 index 00000000..7f8b3790 --- /dev/null +++ b/appstore/pi-hole-dhcp/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: pi-hole-dhcp + name: Pi-hole (DHCP) + tags: + - WebSite + - Local + shortDescZh: DNS 沉洞服务器 + shortDescEn: DNS Sinkhole Server + type: website + crossVersionUpdate: true + limit: 0 + website: https://pi-hole.net/ + github: https://github.com/pi-hole/pi-hole/ + document: https://docs.pi-hole.net/ diff --git a/appstore/pi-hole-dhcp/logo.png b/appstore/pi-hole-dhcp/logo.png new file mode 100644 index 00000000..2512e2b9 Binary files /dev/null and b/appstore/pi-hole-dhcp/logo.png differ diff --git a/appstore/pi-hole/2024.07.0/.env b/appstore/pi-hole/2024.07.0/.env new file mode 100644 index 00000000..41545566 --- /dev/null +++ b/appstore/pi-hole/2024.07.0/.env @@ -0,0 +1,15 @@ +# 数据持久化路径 [必填] +PIHOLE_ROOT_PATH=/home/pihole + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8080 + +# WebUI 密码 [必填] +WEBPASSWORD= + +# 本地 IPv4 地址 [必填] +FTLCONF_LOCAL_IPV4=127.0.0.1 + +# 上游 DNS 服务器 [必填] +PIHOLE_DNS_=1.1.1.1;8.8.8.8;114.114.114.114; + diff --git a/appstore/pi-hole/2024.07.0/data.yml b/appstore/pi-hole/2024.07.0/data.yml new file mode 100644 index 00000000..056e3eb8 --- /dev/null +++ b/appstore/pi-hole/2024.07.0/data.yml @@ -0,0 +1,38 @@ +additionalProperties: + formFields: + - default: "/home/pihole" + edit: true + envKey: PIHOLE_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: WEBPASSWORD + labelZh: WebUI 密码 + labelEn: WebUI password + required: true + type: text + - default: "127.0.0.1" + edit: true + envKey: FTLCONF_LOCAL_IPV4 + labelZh: 本地 IPv4 地址 + labelEn: Local IPv4 address + required: true + type: text + - default: "1.1.1.1;8.8.8.8;114.114.114.114;" + edit: true + envKey: PIHOLE_DNS_ + labelZh: 上游 DNS 服务器 + labelEn: Upstream DNS server + required: true + type: text diff --git a/appstore/pi-hole/2024.07.0/docker-compose.yml b/appstore/pi-hole/2024.07.0/docker-compose.yml new file mode 100644 index 00000000..780cc900 --- /dev/null +++ b/appstore/pi-hole/2024.07.0/docker-compose.yml @@ -0,0 +1,24 @@ +networks: + 1panel-network: + external: true +services: + pihole: + container_name: pi-hole + env_file: + - ./envs/global.env + - .env + environment: + - TZ=Asia/Shanghai + image: pihole/pihole:2024.07.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:80 + - ${PANEL_APP_PORT_DNS}:53 + - ${PANEL_APP_PORT_DNS}:53/udp + restart: always + volumes: + - ${PIHOLE_ROOT_PATH}/pihole:/etc/pihole + - ${PIHOLE_ROOT_PATH}/dnsmasq.d:/etc/dnsmasq.d diff --git a/appstore/pi-hole/2024.07.0/envs/default.env b/appstore/pi-hole/2024.07.0/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/appstore/pi-hole/2024.07.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/pi-hole/2024.07.0/envs/global.env b/appstore/pi-hole/2024.07.0/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/appstore/pi-hole/2024.07.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/pi-hole/2024.07.0/scripts/init.sh b/appstore/pi-hole/2024.07.0/scripts/init.sh new file mode 100644 index 00000000..07fb8c3f --- /dev/null +++ b/appstore/pi-hole/2024.07.0/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/pi-hole/2024.07.0/scripts/uninstall.sh b/appstore/pi-hole/2024.07.0/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/appstore/pi-hole/2024.07.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/pi-hole/2024.07.0/scripts/upgrade.sh b/appstore/pi-hole/2024.07.0/scripts/upgrade.sh new file mode 100644 index 00000000..07fb8c3f --- /dev/null +++ b/appstore/pi-hole/2024.07.0/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/pi-hole/README.md b/appstore/pi-hole/README.md new file mode 100644 index 00000000..1bc52d78 --- /dev/null +++ b/appstore/pi-hole/README.md @@ -0,0 +1,17 @@ +# Pi-hole + +Pi-hole 是一个 Linux 网络级别的广告和互联网追踪器拦截应用程序,充当一个 DNS 沉洞 以及可选的 DHCP 服务器,旨在用于私有网络。 + +![Pi-hole](https://file.lifebus.top/imgs/pi_hole_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +Pi-hole 是一个 Linux 网络级广告和互联网跟踪器阻止应用程序,它充当 DNS 沉洞和可选的 DHCP +服务器,旨在在专用网络上使用。它专为具有网络功能的低功耗嵌入式设备(例如 Raspberry Pi)而设计,但几乎可以安装在任何 Linux +机器上。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/appstore/pi-hole/data.yml b/appstore/pi-hole/data.yml new file mode 100644 index 00000000..786e672b --- /dev/null +++ b/appstore/pi-hole/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: pi-hole + name: Pi-hole + tags: + - WebSite + - Local + shortDescZh: DNS 沉洞服务器 + shortDescEn: DNS Sinkhole Server + type: website + crossVersionUpdate: true + limit: 0 + website: https://pi-hole.net/ + github: https://github.com/pi-hole/pi-hole/ + document: https://docs.pi-hole.net/ diff --git a/appstore/pi-hole/logo.png b/appstore/pi-hole/logo.png new file mode 100644 index 00000000..2512e2b9 Binary files /dev/null and b/appstore/pi-hole/logo.png differ diff --git a/dockge/pi-hole-dhcp/.env b/dockge/pi-hole-dhcp/.env new file mode 100644 index 00000000..336d74c9 --- /dev/null +++ b/dockge/pi-hole-dhcp/.env @@ -0,0 +1,39 @@ +# 数据持久化路径 [必填] +PIHOLE_ROOT_PATH=/home/pihole + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8080 + +# WebUI 密码 [必填] +WEBPASSWORD= + +# 监听地址 [必填] +DNSMASQ_LISTENING=all + +# 本地 IPv4 地址 [必填] +FTLCONF_LOCAL_IPV4=127.0.0.1 + +# 上游 DNS 服务器 [必填] +PIHOLE_DNS_=1.1.1.1;8.8.8.8;114.114.114.114; + +# DHCP 起始地址 [必填] +DHCP_START= + +# DHCP 结束地址 [必填] +DHCP_END= + +# DHCP 路由/网关 IP [必填] +DHCP_ROUTER= + +# DHCP 租约时间 [必填] +DHCP_LEASETIME=24 + +# DHCP 域名 [必填] +PIHOLE_DOMAIN=lan + +# IPv6 支持 [必填] +IPv6=true + +# DHCP IPv6 支持 [必填] +DHCP_IPv6=true + diff --git a/dockge/pi-hole-dhcp/docker-compose.yml b/dockge/pi-hole-dhcp/docker-compose.yml new file mode 100644 index 00000000..b3fb152e --- /dev/null +++ b/dockge/pi-hole-dhcp/docker-compose.yml @@ -0,0 +1,26 @@ +networks: + 1panel-network: + external: true +services: + pihole: + container_name: pi-hole-dhcp + env_file: + - ./envs/global.env + - .env + environment: + - WEB_PORT=${PANEL_APP_PORT_HTTP} + - TZ=Asia/Shanghai + - DHCP_ACTIVE=true + expose: + - 67/udp + - 53 + - 53/udp + - ${PANEL_APP_PORT_HTTP} + image: pihole/pihole:2024.07.0 + labels: + createdBy: Apps + network_mode: host + restart: always + volumes: + - ${PIHOLE_ROOT_PATH}/pihole:/etc/pihole + - ${PIHOLE_ROOT_PATH}/dnsmasq.d:/etc/dnsmasq.d diff --git a/dockge/pi-hole-dhcp/envs/default.env b/dockge/pi-hole-dhcp/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/dockge/pi-hole-dhcp/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/pi-hole-dhcp/envs/global.env b/dockge/pi-hole-dhcp/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/dockge/pi-hole-dhcp/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/dockge/pi-hole/.env b/dockge/pi-hole/.env new file mode 100644 index 00000000..41545566 --- /dev/null +++ b/dockge/pi-hole/.env @@ -0,0 +1,15 @@ +# 数据持久化路径 [必填] +PIHOLE_ROOT_PATH=/home/pihole + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8080 + +# WebUI 密码 [必填] +WEBPASSWORD= + +# 本地 IPv4 地址 [必填] +FTLCONF_LOCAL_IPV4=127.0.0.1 + +# 上游 DNS 服务器 [必填] +PIHOLE_DNS_=1.1.1.1;8.8.8.8;114.114.114.114; + diff --git a/dockge/pi-hole/docker-compose.yml b/dockge/pi-hole/docker-compose.yml new file mode 100644 index 00000000..780cc900 --- /dev/null +++ b/dockge/pi-hole/docker-compose.yml @@ -0,0 +1,24 @@ +networks: + 1panel-network: + external: true +services: + pihole: + container_name: pi-hole + env_file: + - ./envs/global.env + - .env + environment: + - TZ=Asia/Shanghai + image: pihole/pihole:2024.07.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:80 + - ${PANEL_APP_PORT_DNS}:53 + - ${PANEL_APP_PORT_DNS}:53/udp + restart: always + volumes: + - ${PIHOLE_ROOT_PATH}/pihole:/etc/pihole + - ${PIHOLE_ROOT_PATH}/dnsmasq.d:/etc/dnsmasq.d diff --git a/dockge/pi-hole/envs/default.env b/dockge/pi-hole/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/dockge/pi-hole/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/pi-hole/envs/global.env b/dockge/pi-hole/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/dockge/pi-hole/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai