- Add image handler
- Store images locally
This commit is contained in:
Daniel Mason 2021-04-11 20:10:52 +12:00
parent 489527c8f9
commit 8bc462878a
Signed by: idanoo
GPG key ID: 387387CDBC02F132
19 changed files with 158 additions and 54 deletions

View file

@ -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"), ",")