15 lignes
275 o
Go
15 lignes
275 o
Go
package cookies
|
|
|
|
import "github.com/NyaaPantsu/nyaa/config"
|
|
|
|
func getDomainName() string {
|
|
domain := config.Conf.Cookies.DomainName
|
|
if config.Conf.Environment == "DEVELOPMENT" {
|
|
domain = ""
|
|
}
|
|
return domain
|
|
}
|
|
|
|
func getMaxAge() int {
|
|
return config.Conf.Cookies.MaxAge
|
|
}
|