Browse Source

Update: Config Gancio Extend

master
Siroco 3 months ago
parent
commit
ead5d0aa17
Signed by: siroco GPG Key ID: 1324098302A514B0
  1. 6
      installer/main.go

6
installer/main.go

@ -39,6 +39,7 @@ type SMTPConfig struct {
Auth AuthSMTPConfig `json:"auth"`
Secure bool `json:"secure"`
Host string `json:"host"`
Port int `json:"port"`
}
type AuthSMTPConfig struct {
@ -61,9 +62,11 @@ var DB_PATH = "/data/db.sqlite"
var UPLOADS_PATH = "/data/uploads"
var LOGS_PATH = "/data/logs"
var LISTEN_PORT = ":13120"
var LOG_LEVEL = "debug"
var SMTP_USER = "gancio@sindominio.net"
var SMTP_PASS = "secret"
var SMTP_SECURE = true
var SMTP_PORT = 465
var SMTP_HOST = "smtp.sindominio.net"
var TEMPLATE_PATH = "."
@ -155,6 +158,7 @@ func main() {
},
Secure: SMTP_SECURE,
Host: SMTP_HOST,
Port: SMTP_PORT,
}
// Gancio
gancioConfig := InstallerConfig{
@ -162,11 +166,11 @@ func main() {
BaseUrl: r.FormValue("url"),
Server: serverConfig,
UploadPath: UPLOADS_PATH,
LogLevel: "debug",
LogPath: LOGS_PATH,
DB: dbConfig,
SMTP: smtpConfig,
AdminEmail: msg.Email,
LogLevel: LOG_LEVEL,
}
// Write file

Loading…
Cancel
Save