mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-05 13:10:07 +00:00
✨ Linux 一键安装命令
This commit is contained in:
@@ -452,6 +452,7 @@ type settingForm struct {
|
||||
EnableIPChangeNotification string
|
||||
IgnoredIPNotification string
|
||||
Oauth2Type string
|
||||
GRPCHost string
|
||||
Cover uint8
|
||||
}
|
||||
|
||||
@@ -466,6 +467,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
|
||||
}
|
||||
dao.Conf.EnableIPChangeNotification = sf.EnableIPChangeNotification == "on"
|
||||
dao.Conf.Cover = sf.Cover
|
||||
dao.Conf.GRPCHost = sf.GRPCHost
|
||||
dao.Conf.IgnoredIPNotification = sf.IgnoredIPNotification
|
||||
dao.Conf.Site.Brand = sf.Title
|
||||
dao.Conf.Site.Theme = sf.Theme
|
||||
|
||||
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/naiba/nezha/util"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
@@ -47,9 +46,6 @@ func init() {
|
||||
if dao.Conf.GRPCPort == 0 {
|
||||
dao.Conf.GRPCPort = 5555
|
||||
}
|
||||
if dao.Conf.GRPCHost == "" {
|
||||
dao.Conf.GRPCHost = util.FetchGeoIP(false).IP
|
||||
}
|
||||
dao.Cache = cache.New(5*time.Minute, 10*time.Minute)
|
||||
|
||||
initSystem()
|
||||
|
||||
Reference in New Issue
Block a user