mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
@@ -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
|
||||
@@ -0,0 +1,25 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
pihole:
|
||||
image: pihole/pihole:2024.07.0
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:80
|
||||
- ${PANEL_APP_PORT_DNS}:53
|
||||
- ${PANEL_APP_PORT_DNS}:53/udp
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${PIHOLE_ROOT_PATH}/pihole:/etc/pihole
|
||||
- ${PIHOLE_ROOT_PATH}/dnsmasq.d:/etc/dnsmasq.d
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -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
|
||||
@@ -0,0 +1,17 @@
|
||||
# Pi-hole
|
||||
|
||||
Pi-hole 是一个 Linux 网络级别的广告和互联网追踪器拦截应用程序,充当一个 DNS 沉洞 以及可选的 DHCP 服务器,旨在用于私有网络。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 简介
|
||||
|
||||
Pi-hole 是一个 Linux 网络级广告和互联网跟踪器阻止应用程序,它充当 DNS 沉洞和可选的 DHCP
|
||||
服务器,旨在在专用网络上使用。它专为具有网络功能的低功耗嵌入式设备(例如 Raspberry Pi)而设计,但几乎可以安装在任何 Linux
|
||||
机器上。
|
||||
|
||||
---
|
||||
|
||||

|
||||
@@ -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/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user