1
0
Fork 0

feat:调整tianji细节

This commit is contained in:
okxlin 2024-03-25 10:00:16 +08:00
parent 73592c6000
commit fde45a0fb2
7 changed files with 136 additions and 20 deletions

View File

@ -0,0 +1,11 @@
CONTAINER_NAME="tianji"
PANEL_APP_PORT_HTTP="40205"
ALLOW_OPENAPI="true"
ALLOW_REGISTER="false"
JWT_SECRET="any-random-text_fZpxzA"
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="tianji_5pz3w2"
PANEL_DB_PORT="5432"
PANEL_DB_USER="tianji_XA6H4c"
PANEL_DB_USER_PASSWORD="tianji_4X2sNe"

View File

@ -1,17 +1,17 @@
additionalProperties:
formFields:
- default: 12345
- default: 40205
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: PANEL_DB_HOST
key: postgres
key: postgresql
labelEn: Database Service
labelZh: 数据库服务
required: true

View File

@ -2,7 +2,7 @@ version: '3'
services:
tianji:
container_name: ${CONTAINER_NAME}
restart: unless-stopped
restart: always
image: moonrailgun/tianji:1.7.3
networks:
- 1panel-network

View File

@ -1,19 +1,20 @@
name: Tianji
tags:
- 实用工具
title: Tianji 是一款开源的 all-in-one 数据洞察中心。Tianji = Website Analytics + Uptime Monitor + Server Status
type: 实用工具
- 工具
title: Tianji 是一款开源的 all-in-one 数据洞察中心
type: 工具
description: Tianji 是一款开源的 all-in-one 数据洞察中心
additionalProperties:
key: tianji
name: Tianji
tags:
- Tool
shortDescZh: Tianji 是一款开源的 all-in-one 数据洞察中心
shortDescEn: All-in-One Insight Hub
type: tool
crossVersionUpdate: true
limit: 0
website: https://tianji.msgbyte.com/
github: https://github.com/msgbyte/tianji
document: https://tianji.msgbyte.com/
key: tianji
name: Tianji
tags:
- Tool
shortDescZh: Tianji 是一款开源的 all-in-one 数据洞察中心
shortDescEn: Tianji = Website Analytics + Uptime Monitor + Server Status
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://tianji.msgbyte.com/
github: https://github.com/msgbyte/tianji
document: https://github.com/msgbyte/tianji

View File

@ -0,0 +1,11 @@
CONTAINER_NAME="tianji"
PANEL_APP_PORT_HTTP="40205"
ALLOW_OPENAPI="true"
ALLOW_REGISTER="false"
JWT_SECRET="any-random-text_fZpxzA"
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="tianji_5pz3w2"
PANEL_DB_PORT="5432"
PANEL_DB_USER="tianji_XA6H4c"
PANEL_DB_USER_PASSWORD="tianji_4X2sNe"

View File

@ -0,0 +1,73 @@
additionalProperties:
formFields:
- default: 40205
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: PANEL_DB_HOST
key: postgresql
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
- default: tianji
envKey: PANEL_DB_NAME
labelEn: Database Name
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: tianji
envKey: PANEL_DB_USER
labelEn: Database User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: tianji
envKey: PANEL_DB_USER_PASSWORD
labelEn: Database Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: any-random-text
edit: true
envKey: JWT_SECRET
labelEn: Secret
labelZh: 秘钥
random: true
required: true
rule: paramComplexity
type: text
- default: "true"
envKey: ALLOW_OPENAPI
labelEn: Allow OpenAPI
labelZh: 是否开启OpenAPI
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
- default: "false"
envKey: ALLOW_REGISTER
labelEn: Allow Register
labelZh: 是否允许注册
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"

View File

@ -0,0 +1,20 @@
version: '3'
services:
tianji:
container_name: ${CONTAINER_NAME}
restart: always
image: moonrailgun/tianji:latest
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:12345
environment:
- DATABASE_URL=postgresql://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
- JWT_SECRET=${JWT_SECRET}
- ALLOW_REGISTER=${ALLOW_REGISTER}
- ALLOW_OPENAPI=${ALLOW_OPENAPI}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true