Rename --host => --root-url
This commit is contained in:
@@ -13,7 +13,7 @@ var (
|
||||
fileStorePath = flag.String("file-store", "", "path to the directory where uploaded files will be stored")
|
||||
httpListen = flag.String("listen", "127.0.0.1:8000", "listen address (host:port)")
|
||||
metricsListen = flag.String("metrics_listen", "127.0.0.1:58614", "listen address for metrics (host:port)")
|
||||
hostURL = flag.String("host", "", "host root (defaults to using the request 'Host' header with HTTPS")
|
||||
rootURL = flag.String("root_url", "", "host root (example: 'https://example.com', uses an educated guess if omitted)")
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -30,5 +30,5 @@ func main() {
|
||||
defer database.Close()
|
||||
|
||||
go rushlink.StartMetricsServer(*metricsListen, database, filestore)
|
||||
rushlink.StartMainServer(*httpListen, database, filestore, hostURL)
|
||||
rushlink.StartMainServer(*httpListen, database, filestore, *rootURL)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user