Allow settings url prefix with URL_PREFIX env var
This commit is contained in:
parent
3850eedf07
commit
965cf754cf
@ -54,6 +54,10 @@ func ParseOptions(args []string) (Options, error) {
|
||||
opts.Url = os.Getenv("DATABASE_URL")
|
||||
}
|
||||
|
||||
if opts.Prefix == "" {
|
||||
opts.Prefix = os.Getenv("URL_PREFIX")
|
||||
}
|
||||
|
||||
if os.Getenv("SESSIONS") != "" {
|
||||
opts.Sessions = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user