diff --git a/apps/firefly/2.0/.env.sample b/apps/firefly/2.0/.env.sample new file mode 100644 index 00000000..f7aa38fd --- /dev/null +++ b/apps/firefly/2.0/.env.sample @@ -0,0 +1,6 @@ +CONTAINER_NAME="firefly" +FIREFLY_AUTO_SSL="false" +FIREFLY_DEVICE="" +FIREFLY_PASSWORD="password_5S8Dmt" +PANEL_APP_PORT_HTTP="40215" +TIME_ZONE="Asia/Shanghai" diff --git a/apps/firefly/2.0/data.yml b/apps/firefly/2.0/data.yml new file mode 100644 index 00000000..75f70dae --- /dev/null +++ b/apps/firefly/2.0/data.yml @@ -0,0 +1,45 @@ +additionalProperties: + formFields: + - default: 40215 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "password" + edit: true + envKey: FIREFLY_PASSWORD + labelEn: Webui password + labelZh: 网页密码 + random: true + required: true + rule: paramComplexity + type: password + - default: Asia/Shanghai + edit: true + envKey: TIME_ZONE + labelEn: Time zone + labelZh: 时区 + required: true + type: text + - default: "false" + edit: true + envKey: FIREFLY_AUTO_SSL + labelEn: Should automatic SSL certificate acquisition be enabled? If enabled, the port needs to be set to 443. + labelZh: 是否启用自动获取 SSL 证书 (开启则需要将端口设置为 443) + required: true + type: select + values: + - label: "True" + value: "true" + - label: "False" + value: "false" + - default: '' + edit: true + envKey: FIREFLY_DEVICE + labelEn: The network interface names for inbound and outbound traffic with WireGuard + labelZh: WireGuard 出入流量网卡名称 + required: false + type: text \ No newline at end of file diff --git a/apps/firefly/2.0/docker-compose.yml b/apps/firefly/2.0/docker-compose.yml new file mode 100644 index 00000000..a6155d3c --- /dev/null +++ b/apps/firefly/2.0/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' +services: + firefly: + image: "uusec/firefly:v2.0" + container_name: ${CONTAINER_NAME} + restart: always + devices: + - /dev/net/tun + network_mode: host + volumes: + - /lib/modules:/lib/modules + - ./data:/firefly/conf + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - TZ=${TIME_ZONE} + - FIREFLY_DEVICE=${FIREFLY_DEVICE} + - FIREFLY_PASSWORD=${FIREFLY_PASSWORD} + - FIREFLY_AUTO_SSL=${FIREFLY_AUTO_SSL} + - FIREFLY_PORT=${PANEL_APP_PORT_HTTP} + labels: + createdBy: "Apps" \ No newline at end of file diff --git a/apps/firefly/README.md b/apps/firefly/README.md new file mode 100644 index 00000000..a0e3704e --- /dev/null +++ b/apps/firefly/README.md @@ -0,0 +1,57 @@ +

+
+ firefly +

+

萤火虫 WireGuard 服务器

+ +

+ + + + + +

+

+ 特色 • + 使用 • + 感谢 • + 联系 • + 授权 +

+ + + + + +

+ English + 中文 +

+ + +--- + +萤火虫是一款简单、易架设的 WireGuard 服务端软件,可广泛用于异地组网、远程办公、内网穿透等场景。 + + + +## 特色 + +

+ firefly +
+

+ + + - 提供简单、易用的web管理后台 + - 支持所有 WireGuard 客户端接入 + - 无需系统安装 WireGuard 组件 + - 单文件、无额外库依赖 + + + + + +## 使用 + +萤火虫支持Linux x86、ARM等CPU架构环境,萤火虫服务端和WireGuard客户端下载地址: https://github.com/Safe3/firefly/releases ,其中以firefly-x-x开头的是服务端,包含wireguard名称的是客户端。 diff --git a/apps/firefly/data.yml b/apps/firefly/data.yml new file mode 100644 index 00000000..6eb138bc --- /dev/null +++ b/apps/firefly/data.yml @@ -0,0 +1,19 @@ +name: 萤火虫 +tags: + - 实用工具 +title: 一款简单、易架设的 WireGuard 服务端软件 +description: 一款简单、易架设的 WireGuard 服务端软件 +additionalProperties: + key: firefly + name: 萤火虫 + tags: + - Tool + shortDescZh: 一款简单、易架设的 WireGuard 服务端软件 + shortDescEn: A simple and easy to install WireGuard server software + type: tool + crossVersionUpdate: true + limit: 1 + recommend: 0 + website: https://fahi.uusec.com + github: https://github.com/Safe3/firefly + document: https://github.com/Safe3/firefly/blob/main/README.md \ No newline at end of file diff --git a/apps/firefly/latest/.env.sample b/apps/firefly/latest/.env.sample new file mode 100644 index 00000000..f7aa38fd --- /dev/null +++ b/apps/firefly/latest/.env.sample @@ -0,0 +1,6 @@ +CONTAINER_NAME="firefly" +FIREFLY_AUTO_SSL="false" +FIREFLY_DEVICE="" +FIREFLY_PASSWORD="password_5S8Dmt" +PANEL_APP_PORT_HTTP="40215" +TIME_ZONE="Asia/Shanghai" diff --git a/apps/firefly/latest/data.yml b/apps/firefly/latest/data.yml new file mode 100644 index 00000000..75f70dae --- /dev/null +++ b/apps/firefly/latest/data.yml @@ -0,0 +1,45 @@ +additionalProperties: + formFields: + - default: 40215 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "password" + edit: true + envKey: FIREFLY_PASSWORD + labelEn: Webui password + labelZh: 网页密码 + random: true + required: true + rule: paramComplexity + type: password + - default: Asia/Shanghai + edit: true + envKey: TIME_ZONE + labelEn: Time zone + labelZh: 时区 + required: true + type: text + - default: "false" + edit: true + envKey: FIREFLY_AUTO_SSL + labelEn: Should automatic SSL certificate acquisition be enabled? If enabled, the port needs to be set to 443. + labelZh: 是否启用自动获取 SSL 证书 (开启则需要将端口设置为 443) + required: true + type: select + values: + - label: "True" + value: "true" + - label: "False" + value: "false" + - default: '' + edit: true + envKey: FIREFLY_DEVICE + labelEn: The network interface names for inbound and outbound traffic with WireGuard + labelZh: WireGuard 出入流量网卡名称 + required: false + type: text \ No newline at end of file diff --git a/apps/firefly/latest/docker-compose.yml b/apps/firefly/latest/docker-compose.yml new file mode 100644 index 00000000..02387fd0 --- /dev/null +++ b/apps/firefly/latest/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' +services: + firefly: + image: "uusec/firefly:latest" + container_name: ${CONTAINER_NAME} + restart: always + devices: + - /dev/net/tun + network_mode: host + volumes: + - /lib/modules:/lib/modules + - ./data:/firefly/conf + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - TZ=${TIME_ZONE} + - FIREFLY_DEVICE=${FIREFLY_DEVICE} + - FIREFLY_PASSWORD=${FIREFLY_PASSWORD} + - FIREFLY_AUTO_SSL=${FIREFLY_AUTO_SSL} + - FIREFLY_PORT=${PANEL_APP_PORT_HTTP} + labels: + createdBy: "Apps" \ No newline at end of file diff --git a/apps/firefly/logo.png b/apps/firefly/logo.png new file mode 100644 index 00000000..dacf3b63 Binary files /dev/null and b/apps/firefly/logo.png differ