token-validator: use go-bindata to embedded static assets

This commit is contained in:
nemunaire 2019-02-24 04:58:43 +01:00
commit 867b4ef194
7 changed files with 75 additions and 14 deletions

View file

@ -57,7 +57,6 @@ func main() {
var bind = flag.String("bind", ":8081", "Bind port/socket")
var dsn = flag.String("dsn", DSNGenerator(), "DSN to connect to the MySQL server")
var baseURL = flag.String("baseurl", "/", "URL prepended to each URL")
flag.StringVar(&StaticDir, "static", "./htdocs/", "Directory containing static files")
flag.StringVar(&sharedSecret, "sharedsecret", "adelina", "secret used to communicate with remote validator")
flag.StringVar(&AuthorizedKeyLocation, "authorizedkeyslocation", Authorizedkeyslocation, "File for allowing user to SSH to the machine")
flag.Parse()