From ffdb74d841f539df912099e04f352c080fe66b11 Mon Sep 17 00:00:00 2001 From: "LayFi.de" Date: Mon, 27 Jan 2025 20:50:11 +0800 Subject: [PATCH] ~! --- .env | 95 ++++++++++++++++++++++++++---------------------------- .gitignore | 3 +- 2 files changed, 47 insertions(+), 51 deletions(-) diff --git a/.env b/.env index bc3e01c..2956ca6 100644 --- a/.env +++ b/.env @@ -1,54 +1,49 @@ -[webserver] -bind = 0.0.0.0 -port = 22455 -countCoefficient = 4 -#开启的进程数量的系数,数值X为几倍CPU核心数量,即最终开启进程数量为:cpu逻辑核数量*X,推荐为4,默认为1 -enable = 'true' -#改为'false'可关闭Web服务器 +[WEBSERVER] +BIND = 0.0.0.0 +PORT = 22455 +COUNTCOEFFICIENT = 4 +ENABLE = 'true' -[monitor] -enable = 'true' -#改为'false'可关闭代码更改自动重启监控,对于systemctl下运行较好 +[MONITOR] +ENABLE = 'true' -[database] -driver = 'postgre' -#数据库类型,可选postgre、sqlite、mysql、sqlserver,并填写下方对应配置。默认mysql -[database.mysql] -host = '127.0.0.1' -port = 3306 -database = 'webman' -username = 'webman' -password = '' -charset = 'utf8' -collation = 'utf8_unicode_ci' -prefix = '' -[database.sqlite] -database = '/sqlite.db' -#sqlite二进制db文件的路径,相对于代码存储目录。以/开头。 -prefix = '' -[database.sqlserver] -host = '127.0.0.1' -port = 1433 -database = 'webman' -username = 'webman' -password = '' -charset = 'utf8' -prefix = '' -[database.postgre] -host = 'layfi.postgres.database.azure.com' -port = 5432 -database = 'postgres' -username = 'layfi' -password = 'qi2005112' -charset = 'utf8' -prefix = '' -schema = 'layfi' -sslmode = 'prefer' -#ssl模式,可选disable、allow、prefer、require、verify-ca、verify-full。一般而言,默认的perfer即可。详见https://learn.microsoft.com/zh-cn/azure/postgresql/flexible-server/concepts-networking-ssl-tls#configure-ssl-on-the-client +[DATABASE] +DRIVER = mysql -[getcoin.bitget] -enable = 'true' -#改为'false'可关闭bitget api定时器 -time = '*/5 * * * * *' -#执行时间,参见https://www.workerman.net/doc/webman/components/crontab.html +[DATABASE.MYSQL] +HOST = 127.0.0.1 +PORT = 3306 +DATABASE = webman +USERNAME = webman +PASSWORD = +CHARSET = utf8 +COLLATION = utf8_unicode_ci +PREFIX = +[DATABASE.SQLITE] +DATABASE = /sqlite.db +PREFIX = + +[DATABASE.SQLSERVER] +HOST = 127.0.0.1 +PORT = 1433 +DATABASE = webman +USERNAME = webman +PASSWORD = +CHARSET = utf8 +PREFIX = + +[DATABASE.POSTGRE] +HOST = 127.0.0.1 +PORT = 5432 +DATABASE = webman +USERNAME = webman +PASSWORD = +CHARSET = utf8 +PREFIX = +SCHEMA = public +SSLMODE = prefer + +[GETCOIN.BITGET] +ENABLE = 'true' +TIME = 0 */30 * * * * \ No newline at end of file diff --git a/.gitignore b/.gitignore index a2078b3..7077a15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env.back -runtime/* \ No newline at end of file +runtime/* +vendor \ No newline at end of file