|
|
@ -31,8 +31,6 @@ import (
|
|
|
|
var (
|
|
|
|
var (
|
|
|
|
port = flag.Int("port", 8080, "The port to listen on")
|
|
|
|
port = flag.Int("port", 8080, "The port to listen on")
|
|
|
|
maxLength = flag.Int64("maxLength", 1024, "The maximum length (KB) of a template.")
|
|
|
|
maxLength = flag.Int64("maxLength", 1024, "The maximum length (KB) of a template.")
|
|
|
|
expanderName = flag.String("expander", "expandybird-service", "The DNS name of the expander service.")
|
|
|
|
|
|
|
|
expanderURL = flag.String("expanderURL", "", "The URL for the expander service.")
|
|
|
|
|
|
|
|
deployerName = flag.String("deployer", "resourcifier-service", "The DNS name of the deployer service.")
|
|
|
|
deployerName = flag.String("deployer", "resourcifier-service", "The DNS name of the deployer service.")
|
|
|
|
deployerURL = flag.String("deployerURL", "", "The URL for the deployer service.")
|
|
|
|
deployerURL = flag.String("deployerURL", "", "The URL for the deployer service.")
|
|
|
|
credentialFile = flag.String("credentialFile", "", "Local file to use for credentials.")
|
|
|
|
credentialFile = flag.String("credentialFile", "", "Local file to use for credentials.")
|
|
|
@ -73,8 +71,6 @@ func parseFlags() *router.Config {
|
|
|
|
return &router.Config{
|
|
|
|
return &router.Config{
|
|
|
|
Address: fmt.Sprintf(":%d", *port),
|
|
|
|
Address: fmt.Sprintf(":%d", *port),
|
|
|
|
MaxTemplateLength: *maxLength,
|
|
|
|
MaxTemplateLength: *maxLength,
|
|
|
|
ExpanderName: *expanderName,
|
|
|
|
|
|
|
|
ExpanderURL: *expanderURL,
|
|
|
|
|
|
|
|
DeployerName: *deployerName,
|
|
|
|
DeployerName: *deployerName,
|
|
|
|
DeployerURL: *deployerURL,
|
|
|
|
DeployerURL: *deployerURL,
|
|
|
|
CredentialFile: *credentialFile,
|
|
|
|
CredentialFile: *credentialFile,
|
|
|
|