Fix admin route access and backend configuration
- Added /admin redirect to login page in nginx config - Fixed backend server.js route ordering for proper admin handling - Updated authentication middleware and routes - Added user management routes - Configured PostgreSQL integration - Updated environment configuration
This commit is contained in:
33
Sky_Art_shop/appsettings.Production.json
Normal file
33
Sky_Art_shop/appsettings.Production.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Microsoft.EntityFrameworkCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"MongoDB": {
|
||||
"ConnectionString": "mongodb://localhost:27017",
|
||||
"DatabaseName": "SkyArtShopDB",
|
||||
"Collections": {
|
||||
"Pages": "Pages",
|
||||
"PortfolioCategories": "PortfolioCategories",
|
||||
"PortfolioProjects": "PortfolioProjects",
|
||||
"Products": "Products",
|
||||
"BlogPosts": "BlogPosts",
|
||||
"SiteSettings": "SiteSettings",
|
||||
"MenuItems": "MenuItems",
|
||||
"HomepageSections": "HomepageSections",
|
||||
"Users": "Users"
|
||||
}
|
||||
},
|
||||
"AdminUser": {
|
||||
"Email": "admin@skyartshop.com",
|
||||
"Password": "ChangeThisPassword123!",
|
||||
"Name": "Sky Art Shop Admin"
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"IdentityConnection": "Data Source=identity.db"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user