mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 14:17:56 +08:00
* 1030 - Refactor SMTP settings to be outside of passcode config * Backwards compatibility of SMTP settings * Do not error if root smtp and passcode smtp are defined. Log warning instead * Update warning message
44 lines
894 B
Go
44 lines
894 B
Go
package test
|
|
|
|
import "github.com/teamhanko/hanko/backend/config"
|
|
|
|
var DefaultConfig = config.Config{
|
|
Webauthn: config.WebauthnSettings{
|
|
RelyingParty: config.RelyingParty{
|
|
Id: "localhost",
|
|
DisplayName: "Test Relying Party",
|
|
Icon: "",
|
|
Origins: []string{"http://localhost:8080", "http://localhost:8888"},
|
|
},
|
|
Timeout: 60000,
|
|
UserVerification: "preferred",
|
|
},
|
|
Secrets: config.Secrets{
|
|
Keys: []string{"abcdefghijklmnop"},
|
|
},
|
|
Smtp: config.SMTP{
|
|
Host: "localhost",
|
|
Port: "2500",
|
|
},
|
|
Passcode: config.Passcode{
|
|
Email: config.Email{
|
|
FromAddress: "test@hanko.io",
|
|
FromName: "Hanko Test",
|
|
},
|
|
TTL: 300,
|
|
},
|
|
Session: config.Session{
|
|
Lifespan: "1h",
|
|
Cookie: config.Cookie{
|
|
SameSite: "none",
|
|
},
|
|
},
|
|
Service: config.Service{
|
|
Name: "Test",
|
|
},
|
|
Account: config.Account{
|
|
AllowSignup: true,
|
|
AllowDeletion: false,
|
|
},
|
|
}
|