Increase session duration with --dev flag (#3339)

This commit is contained in:
Zach Wasserman 2021-12-12 17:31:07 -08:00 committed by GitHub
parent 3a5037f798
commit a35ddfd4d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ func initFatal(err error, message string) {
func createRootCmd() *cobra.Command {
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
rootCmd := &cobra.Command{
Use: "fleet",
Short: "osquery management and orchestration",
Long: `Fleet server (https://fleetdm.com)
@ -61,4 +61,5 @@ func applyDevFlags(cfg *config.FleetConfig) {
cfg.Mysql.Username = "fleet"
cfg.Mysql.Database = "fleet"
cfg.Mysql.Password = "insecure"
cfg.Session.Duration = 7 * 24 * time.Hour
}