修改为sql数据库

This commit is contained in:
bjdgyc
2021-07-16 11:25:06 +08:00
parent 884f41d2f8
commit e7ef29c4ad
9 changed files with 36 additions and 27 deletions

View File

@@ -77,7 +77,7 @@ sudo ./anylink
## Config
默认配置文件内有详细的注释,根据注释填写配置即可。
> 默认配置文件内有详细的注释,根据注释填写配置即可。
```shell
# 生成后台密码
@@ -87,7 +87,17 @@ sudo ./anylink
./anylink tool -s
```
[conf/server.toml](server/conf/server.toml)
> 数据库配置示例
| db_type | db_source |
| ---- | ---- |
| sqlite3 | ./conf/anylink.db |
| mysql | user:password@tcp(127.0.0.1:3306)/anylink?charset=utf8 |
| postgres | user:password@localhost/anylink?sslmode=verify-full |
> 示例配置文件
>
> [conf/server-sample.toml](server/conf/server-sample.toml)
## Setting