Add custom http root
Now we are able to let this service run on a different root path.
This commit is contained in:
@@ -120,5 +120,12 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVar: "OCS_HTTP_ADDR",
|
||||
Destination: &cfg.HTTP.Addr,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "http-root",
|
||||
Value: "/",
|
||||
Usage: "Root path of http server",
|
||||
EnvVar: "OCS_HTTP_ROOT",
|
||||
Destination: &cfg.HTTP.Root,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user