feat: add app GPT4Free

This commit is contained in:
arch3rPro
2025-08-01 15:01:31 +08:00
parent 72e26982c4
commit 0b96ab1668
14 changed files with 304 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
additionalProperties:
formFields:
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Interface Port
labelZh: Web界面端口
label:
en: Web Interface Port
zh: Web界面端口
zh-Hant: Web界面埠
required: true
rule: paramPort
type: number
- default: 1337
envKey: PANEL_APP_PORT_API
labelEn: API Port
labelZh: API接口端口
label:
en: API Port
zh: API接口端口
zh-Hant: API接口埠
required: true
rule: paramPort
type: number
- default: 7900
envKey: PANEL_APP_PORT_REMOTE
labelEn: Remote Desktop Port
labelZh: 远程桌面端口
label:
en: Remote Desktop Port
zh: 远程桌面端口
zh-Hant: 遠程桌面埠
required: true
rule: paramPort
type: number
+22
View File
@@ -0,0 +1,22 @@
services:
gpt4free:
image: hlohaus789/g4f:latest
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
shm_size: 2gb
volumes:
- ./har_and_cookies:/app/har_and_cookies
- ./generated_media:/app/generated_media
ports:
- ${PANEL_APP_PORT_HTTP}:8080
- ${PANEL_APP_PORT_API}:8080
- ${PANEL_APP_PORT_REMOTE}:7900
environment:
- OLLAMA_HOST=host.docker.internal
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
chown -R 1200:1201 har_and_cookies
chown -R 1200:1201 generated_media