public Startup(IConfiguration configuration) { Configuration = configuration; var db_host = Environment.GetEnvironmentVariable("DB_HOST"); var db_name = Environment.GetEnvironmentVariable("DB_NAME"); var db_user = Environment.GetEnvironmentVariable("DB_USER"); var db_pass = Environment.GetEnvironmentVariable("DB_PASS"); var db_port = Environment.GetEnvironmentVariable("DB_PORT"); var coneccionModificada = ConfigurationExtensions.GetConnectionString(Configuration, "Coneccion").Replace("DB_HOST", db_host).Replace("DB_PORT", db_port).Replace("DB_NAME", db_name).Replace("DB_USER", db_user).Replace("DB_PASS", db_pass); DBConexion.AgregarConexiones("ConneccionDB", coneccionModificada); }