mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
0.0.21
- Add ez deploy script - Half implemented JWT refresh tokens, need to finish JS implementation
This commit is contained in:
parent
7c3b98a828
commit
fb9ebef49c
18 changed files with 228 additions and 29 deletions
|
@ -39,6 +39,18 @@ func main() {
|
|||
goscrobble.JwtExpiry = time.Duration(i) * time.Second
|
||||
}
|
||||
|
||||
// Store Refresh expiry
|
||||
goscrobble.RefereshExpiry = (86400 * 7)
|
||||
refreshExpiryStr := os.Getenv("REFRESH_EXPIRY")
|
||||
if refreshExpiryStr != "" {
|
||||
i, err := strconv.ParseFloat(refreshExpiryStr, 64)
|
||||
if err != nil {
|
||||
panic("Invalid REFRESH_EXPIRY value")
|
||||
}
|
||||
|
||||
goscrobble.RefereshExpiry = time.Duration(i) * time.Second
|
||||
}
|
||||
|
||||
// Ignore reverse proxies
|
||||
goscrobble.ReverseProxies = strings.Split(os.Getenv("REVERSE_PROXIES"), ",")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue