Merge pull request #387 from sosedoff/url-prefix-env-var
Allow settings url prefix with URL_PREFIX env var
This commit is contained in:
commit
15d2e7917a
@ -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