mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
0.0.29
- Add image handler - Store images locally
This commit is contained in:
parent
489527c8f9
commit
8bc462878a
19 changed files with 158 additions and 54 deletions
|
@ -51,6 +51,12 @@ func main() {
|
|||
goscrobble.RefereshExpiry = time.Duration(i) * time.Second
|
||||
}
|
||||
|
||||
goscrobble.StaticDirectory = "web"
|
||||
staticDirectoryStr := os.Getenv("STATIC_DIR")
|
||||
if staticDirectoryStr != "" {
|
||||
goscrobble.StaticDirectory = staticDirectoryStr
|
||||
}
|
||||
|
||||
// Ignore reverse proxies
|
||||
goscrobble.ReverseProxies = strings.Split(os.Getenv("REVERSE_PROXIES"), ",")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue