Add the expected external URL in configuration
This commit is contained in:
parent
187b9bb5dc
commit
c56bd75abb
|
@ -39,6 +39,7 @@ func (o *Options) parseCLI() error {
|
|||
flag.StringVar(&o.DevProxy, "dev", o.DevProxy, "Proxify traffic to this host for static assets")
|
||||
flag.StringVar(&o.Bind, "bind", ":8081", "Bind port/socket")
|
||||
flag.StringVar(&o.DSN, "dsn", o.DSN, "DSN to connect to the MySQL server")
|
||||
flag.StringVar(&o.ExternalURL, "exernalurl", o.ExternalURL, "Begining of the URL, before the base, that should be used eg. in mails")
|
||||
flag.StringVar(&o.BaseURL, "baseurl", o.BaseURL, "URL prepended to each URL")
|
||||
flag.StringVar(&o.DefaultNameServer, "defaultns", o.DefaultNameServer, "Adress to the default name server")
|
||||
flag.Parse()
|
||||
|
|
|
@ -43,6 +43,7 @@ import (
|
|||
|
||||
type Options struct {
|
||||
Bind string
|
||||
ExternalURL string
|
||||
BaseURL string
|
||||
DevProxy string
|
||||
DSN string
|
||||
|
@ -53,6 +54,7 @@ func ConsolidateConfig() (opts *Options, err error) {
|
|||
// Define defaults options
|
||||
opts = &Options{
|
||||
Bind: ":8081",
|
||||
ExternalURL: "http://localhost:8081",
|
||||
BaseURL: "/",
|
||||
DSN: database.DSNGenerator(),
|
||||
DefaultNameServer: "127.0.0.1:53",
|
||||
|
|
Loading…
Reference in New Issue