package common import ( "time" ) const ( ConnectionTimeout = 5 * time.Second DialTimeout = 3 * time.Second KeepAlive = 60 * time.Second ) // file, folder structure const ( DotEnvPath = ".env" DotEnvExamplePath = ".env.example" ConfigBasePath = "config" ConfigFileName = "config.yml" ConfigExampleFileName = "config.example.yml" ConfigPath = ConfigBasePath + "/" + ConfigFileName HomepageJSONConfigPath = ConfigBasePath + "/.homepage.json" IconListCachePath = ConfigBasePath + "/.icon_list_cache.json" MiddlewareComposeBasePath = ConfigBasePath + "/middlewares" SchemasBasePath = "schemas" ConfigSchemaPath = SchemasBasePath + "/config.schema.json" FileProviderSchemaPath = SchemasBasePath + "/providers.schema.json" ComposeFileName = "compose.yml" ComposeExampleFileName = "compose.example.yml" ErrorPagesBasePath = "error_pages" ) var RequiredDirectories = []string{ ConfigBasePath, SchemasBasePath, ErrorPagesBasePath, MiddlewareComposeBasePath, } const DockerHostFromEnv = "$DOCKER_HOST" const ( HealthCheckIntervalDefault = 5 * time.Second HealthCheckTimeoutDefault = 5 * time.Second WakeTimeoutDefault = "30s" StopTimeoutDefault = "30s" StopMethodDefault = "stop" ) const HeaderCheckRedirect = "X-Goproxy-Check-Redirect"