重命名项目并补充插件与安全整改文档
This commit is contained in:
1 parent
a6049bf052
commit
e91a64136b
131 files changed
+1306
-771
No files matched your search
@@ -6,7 +6,7 @@
|
||||
"sslType": "0",
|
||||
"SSLPrivateKeyPath": "config/ssl/private.key",
|
||||
"SSLPublicKeyPath": "config/ssl/public.crt",
|
||||
"dbDSN": "./config/pmail.db",
|
||||
"dbDSN": "./config/smail.db",
|
||||
"dbType": "sqlite",
|
||||
"spamFilterLevel": 2,
|
||||
"httpPort": 80,
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"encoding/json"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"github.com/Jinnrry/pmail/utils/context"
|
||||
"github.com/Jinnrry/pmail/utils/errors"
|
||||
"github.com/Jinnrry/pmail/utils/file"
|
||||
"git.pcux.cn/xuans/Smail/utils/context"
|
||||
"git.pcux.cn/xuans/Smail/utils/errors"
|
||||
"git.pcux.cn/xuans/Smail/utils/file"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -55,8 +55,8 @@ var ROOT_PATH = ""
|
||||
func init() {
|
||||
envs := os.Environ()
|
||||
for _, env := range envs {
|
||||
if strings.HasPrefix(env, "PMail_ROOT=") {
|
||||
ROOT_PATH = strings.TrimSpace(strings.ReplaceAll(env, "PMail_ROOT=", ""))
|
||||
if strings.HasPrefix(env, "SMAIL_ROOT=") {
|
||||
ROOT_PATH = strings.TrimSpace(strings.ReplaceAll(env, "SMAIL_ROOT=", ""))
|
||||
if !strings.HasSuffix(ROOT_PATH, "/") {
|
||||
ROOT_PATH += "/"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"sslType": "1",
|
||||
"SSLPrivateKeyPath": "./config/ssl/private.key",
|
||||
"SSLPublicKeyPath": "./config/ssl/public.crt",
|
||||
"dbDSN": "./config/pmail_temp.db",
|
||||
"dbDSN": "./config/smail_temp.db",
|
||||
"dbType": "sqlite",
|
||||
"httpsEnabled": 2,
|
||||
"spamFilterLevel": 0,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"sslType": "0",
|
||||
"SSLPrivateKeyPath": "config/ssl/private.key",
|
||||
"SSLPublicKeyPath": "config/ssl/public.crt",
|
||||
"dbDSN": "root:root@tcp(127.0.0.1:3306)/pmail?parseTime=True&loc=Local",
|
||||
"dbDSN": "root:root@tcp(127.0.0.1:3306)/smail?parseTime=True&loc=Local",
|
||||
"dbType": "mysql",
|
||||
"spamFilterLevel": 1,
|
||||
"httpPort": 80,
|
||||
|
||||
Reference in new issue
Block a user