-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
129 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Easy Admin 配置 | ||
> [查看最新在线配置文件](https://github.com/nicelizhi/easy-admin/blob/main/config/settings.full.yml) | ||
[English](https://nicelizhi.github.io/easy-admin/guide/configure/) | 简体中文 | ||
``` | ||
settings: | ||
application: | ||
# dev test prod | ||
mode: dev | ||
# host IP ,default 0.0.0.0 | ||
host: 0.0.0.0 | ||
# application name | ||
name: easy-admin | ||
# application port | ||
port: 8000 | ||
readtimeout: 1 | ||
writertimeout: 2 | ||
# enable dp | ||
enabledp: false | ||
# timezone | ||
timezone: "Africa/Cairo" | ||
# local | ||
local: "en" | ||
ssl: | ||
# https domain | ||
domain: localhost:8000 | ||
# https enable | ||
enable: false | ||
# ssl key | ||
key: keystring | ||
# ssl pem path | ||
pem: temp/pem.pem | ||
logger: | ||
# log save path | ||
path: temp/logs | ||
# file / default | ||
stdout: '' | ||
# trace, debug, info, warn, error, fatal | ||
level: trace | ||
# enable db log | ||
enableddb: false | ||
jwt: | ||
# token secret | ||
secret: easy-admin | ||
# token timeout (S) | ||
timeout: 3600 | ||
database: | ||
# mysql,sqlite3, postgres | ||
driver: mysql | ||
source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
# source: sqlite3.db | ||
# source: host=myhost port=myport user=gorm dbname=gorm password=mypassword | ||
registers: | ||
- sources: | ||
- user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
gen: | ||
dbname: dbname | ||
frontpath: ../ui/src | ||
queue: | ||
memory: | ||
poolSize: 100 | ||
extend: # ext config | ||
demo: | ||
name: data | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 二进制下载安装 | ||
> 通过此方案,简单的通过下载对应平台的可执行文件,做下简单的文件配置就可以完成应用的开启使用 | ||
[English](https://nicelizhi.github.io/easy-admin/guide/install/binary) | 简体中文 | ||
|
||
### 1、准备 | ||
> [Easy Admin 官方下载页面](https://github.com/nicelizhi/easy-admin/releases) 下载可执行文件 | ||
|
||
### 2、配置 | ||
|
||
[配置文件](https://nicelizhi.github.io/easy-admin/zh/guide/configure/) | ||
|
||
### 3、开始运行 (Linux) | ||
|
||
``` | ||
chmod +x ./easy-admin | ||
./easy-admin server -c=config/settings.yml | ||
``` | ||
|
||
### 4、测试(Linux) | ||
|
||
``` | ||
ps aux | grep "easy-admin" // | ||
netstat -an | grep 8000 | ||
``` | ||
|
||
### 提交BUG与建议 | ||
https://github.com/nicelizhi/easy-admin/issues | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters