Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/config/email.go

29 lignes
869 o
Go
Brut Vue normale Historique

2017-05-06 20:07:03 +02:00
package config
import "time"
// TODO: Perform email configuration at runtime
// Future hosts shouldn't have to rebuild the binary to update a setting
2017-05-06 20:07:03 +02:00
const (
// SendEmail : Enable Email
SendEmail = true
// EmailFrom : email address by default
EmailFrom = "donotrespond@nyaa.pantsu.cat"
// EmailTestTo : when testing to who send email
EmailTestTo = ""
// EmailHost : Host of mail server
EmailHost = "localhost"
// EmailUsername : Username needed for the connection
2017-05-06 20:07:03 +02:00
EmailUsername = ""
// EmailPassword : Password needed for the connection
2017-05-06 20:07:03 +02:00
EmailPassword = ""
// EmailPort : Mail Server port
EmailPort = 465
// EmailTimeout : Timeout for waiting server response
EmailTimeout = 10 * time.Second
2017-05-06 20:07:03 +02:00
)
2017-05-10 00:04:07 +02:00
// EmailTokenHashKey : /!\ Email hash for generating email activation token /!\
2017-05-13 01:47:09 +02:00
var EmailTokenHashKey = []byte("CHANGE_THIS_BEFORE_DEPLOYING_YOU_GIT")