mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
Update scripts for new location
This commit is contained in:
parent
d268d939eb
commit
ef66e1c8df
8 changed files with 26 additions and 20 deletions
|
@ -51,10 +51,14 @@ func main() {
|
|||
goscrobble.RefereshExpiry = time.Duration(i) * time.Second
|
||||
}
|
||||
|
||||
goscrobble.StaticDirectory = "web"
|
||||
staticDirectoryStr := os.Getenv("STATIC_DIR")
|
||||
if staticDirectoryStr != "" {
|
||||
goscrobble.StaticDirectory = staticDirectoryStr
|
||||
goscrobble.DataDirectory = os.Getenv("DATA_DIRECTORY")
|
||||
if goscrobble.DataDirectory == "" {
|
||||
panic("DATA_DIRECTORY required in .env")
|
||||
}
|
||||
|
||||
goscrobble.FrontendDirectory = os.Getenv("FRONTEND_DIRECTORY")
|
||||
if goscrobble.FrontendDirectory == "" {
|
||||
panic("FRONTEND_DIRECTORY required in .env")
|
||||
}
|
||||
|
||||
// Ignore reverse proxies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue