Skip to content

Commit

Permalink
Revert "Trying to hide connectionstring"
Browse files Browse the repository at this point in the history
This reverts commit d5c1f62.
  • Loading branch information
cpilITU committed Nov 15, 2023
1 parent d5c1f62 commit ed71a42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chirp.Razor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// var folder = Environment.SpecialFolder.LocalApplicationData;
// var path = Environment.GetFolderPath(folder);
// var DbPath = System.IO.Path.Join(path, "chirp.db");
var connectionString = builder.Configuration.GetConnectionString("dbProduction");
var connectionString = builder.Configuration["ConnectionStrings:dbProduction"];

builder.Services.AddDbContext<ChirpDBContext>(
options => options.UseSqlServer(
Expand Down
2 changes: 2 additions & 0 deletions src/Chirp.Razor/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
"ClientId": "ad51b894732b1efafa35",
"ClientSecret": "7a3029e576e3cdc3a3a1fdbd7109de36a8542a88"
}
}, "ConnectionStrings": {
"DbProduction": "Server=tcp:bdsagroup2-chirpdb.database.windows.net,1433;Initial Catalog=bdsagroup2-chirpdb;Persist Security Info=False;User ID=bdsagroup2;Password=12345Aa.;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
}
}

0 comments on commit ed71a42

Please sign in to comment.