New env variable FIC_BASEURL to change the base URL
This commit is contained in:
parent
74ae52ef41
commit
8f1b44e3dd
12 changed files with 165 additions and 77 deletions
|
@ -61,6 +61,11 @@ func StripPrefix(prefix string, h http.Handler) http.Handler {
|
|||
}
|
||||
|
||||
func main() {
|
||||
// Read paremeters from environment
|
||||
if v, exists := os.LookupEnv("FIC_BASEURL"); exists {
|
||||
BaseURL = v
|
||||
}
|
||||
|
||||
// Read parameters from command line
|
||||
var bind = flag.String("bind", "127.0.0.1:8083", "Bind port/socket")
|
||||
var dsn = flag.String("dsn", fic.DSNGenerator(), "DSN to connect to the MySQL server")
|
||||
|
|
Reference in a new issue