Skip to content

Commit 74fae04

Browse files
feat: 应用商店支持 typecho (#93)
1 parent 191b466 commit 74fae04

File tree

5 files changed

+149
-0
lines changed

5 files changed

+149
-0
lines changed

apps/typecho/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Typecho Blogging Platform
2+
=========================
3+
4+
Typecho is a PHP-based blog software and is designed to be the most powerful blog engine in the world.
5+
Typecho is released under the GNU General Public License 2.0.
6+
7+
## Main Features
8+
9+
* Multiple databases support (MySQL, SQLite, PostgreSQL)
10+
* Markdown Support
11+
* Plugin Support
12+
* Theme Support
13+
* Custom Fields
14+
* Custom Pages
15+
16+
## Requirements
17+
18+
* PHP 7.2.0 or higher
19+
* Database (MySQL, SQLite, PostgreSQL)
20+
* MySQL 5.5.3 or higher
21+
* SQLite 3.7.11 or higher
22+
* PostgreSQL 9.1 or higher
23+
24+
## Screenshots
25+
26+
![Typecho](https://typecho.org/usr/themes/bluecode/img/screenshot/st1.png)
27+
28+
## Contributing
29+
30+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

apps/typecho/data.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: typecho
2+
tags:
3+
- 建站
4+
title: 一款基于 PHP 的博客软件
5+
type: 建站
6+
description: 一款基于 PHP 的博客软件
7+
additionalProperties:
8+
key: typecho
9+
name: typecho
10+
tags:
11+
- WebSite
12+
shortDescZh: 一款基于 PHP 的博客软件
13+
shortDescEn: A PHP-based blog software
14+
type: website
15+
crossVersionUpdate: true
16+
limit: 0
17+
recommend: 2
18+
website: https://typecho.org/
19+
github: https://github.com/typecho/typecho
20+
document: https://docs.typecho.org/doku.php

apps/typecho/logo.png

6.37 KB
Loading
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
additionalProperties:
2+
formFields:
3+
- default: ""
4+
envKey: PANEL_DB_HOST
5+
key: mysql
6+
labelEn: Database Service
7+
labelZh: 数据库服务
8+
required: true
9+
type: service
10+
- default: typecho
11+
envKey: PANEL_DB_NAME
12+
labelEn: Database
13+
labelZh: 数据库名
14+
random: true
15+
required: true
16+
rule: paramCommon
17+
type: text
18+
- default: typecho
19+
envKey: PANEL_DB_USER
20+
labelEn: Database User
21+
labelZh: 数据库用户
22+
random: true
23+
required: true
24+
rule: paramCommon
25+
type: text
26+
- default: typecho
27+
envKey: PANEL_DB_USER_PASSWORD
28+
labelEn: Database User Password
29+
labelZh: 数据库用户密码
30+
random: true
31+
required: true
32+
rule: paramComplexity
33+
type: password
34+
- default: typecho
35+
disabled: true
36+
envKey: TYPECHO_USER_NAME
37+
labelEn: User
38+
labelZh: 管理员
39+
required: true
40+
type: text
41+
- default: typecho
42+
disabled: true
43+
envKey: TYPECHO_USER_PASSWORD
44+
labelEn: Password
45+
labelZh: 管理员默认密码
46+
required: true
47+
type: text
48+
- default: 8080
49+
envKey: PANEL_APP_PORT_HTTP
50+
labelEn: Port
51+
labelZh: 端口
52+
required: true
53+
rule: paramPort
54+
type: number
55+
- default: [email protected]
56+
edit: true
57+
envKey: TYPECHO_USER_MAIL
58+
labelEn: User Email
59+
labelZh: 用户邮箱
60+
required: true
61+
type: text
62+
- default: http://localhost:8080
63+
edit: true
64+
envKey: TYPECHO_EXTERNAL_URL
65+
labelEn: External URL
66+
labelZh: 外部访问地址
67+
required: true
68+
rule: paramExtUrl
69+
type: text
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: '3'
2+
services:
3+
typecho:
4+
image: joyqi/typecho:nightly-php7.4-apache
5+
container_name: ${CONTAINER_NAME}
6+
restart: always
7+
environment:
8+
- TYPECHO_INSTALL=1
9+
- TYPECHO_DB_ADAPTER=Pdo_Mysql
10+
- TYPECHO_DB_HOST=${PANEL_DB_HOST}
11+
- TYPECHO_DB_DATABASE=${PANEL_DB_NAME}
12+
- TYPECHO_DB_PORT=3306
13+
- TYPECHO_DB_USER=${PANEL_DB_USER}
14+
- TYPECHO_DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
15+
- TYPECHO_USER_NAME=${TYPECHO_USER}
16+
- TYPECHO_USER_PASSWORD=${TYPECHO_USER_PASSWORD}
17+
- TYPECHO_USER_MAIL=${TYPECHO_USER_MAIL}
18+
- TYPECHO_SITE_URL=${TYPECHO_EXTERNAL_URL}
19+
ports:
20+
- ${PANEL_APP_PORT_HTTP}:80
21+
networks:
22+
- 1panel-network
23+
volumes:
24+
- ./data:/app
25+
labels:
26+
createdBy: "Apps"
27+
28+
networks:
29+
1panel-network:
30+
external: true

0 commit comments

Comments
 (0)