chore(tooling): configure appsettings and launchsettings

This commit is contained in:
cswimr 2024-12-31 19:02:37 -05:00
parent 4a6bca20bc
commit eb8c304020
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
3 changed files with 62 additions and 37 deletions

View file

@ -1,38 +1,41 @@
{ {
"$schema": "http://json.schemastore.org/launchsettings.json", "$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
"iisExpress": { "iisExpress": {
"applicationUrl": "http://localhost:7739", "applicationUrl": "http://localhost:48070",
"sslPort": 44309 "sslPort": 44382
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:5150",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"profiles": { "https": {
"http": { "commandName": "Project",
"commandName": "Project", "dotnetRunMessages": true,
"dotnetRunMessages": true, "launchBrowser": true,
"launchBrowser": true, "launchUrl": "swagger",
"applicationUrl": "http://localhost:5123", "applicationUrl": "https://localhost:7047;http://localhost:5150",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"https": { "IIS Express": {
"commandName": "Project", "commandName": "IISExpress",
"dotnetRunMessages": true, "launchBrowser": true,
"launchBrowser": true, "launchUrl": "swagger",
"applicationUrl": "https://localhost:7268;http://localhost:5123", "environmentVariables": {
"environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
} }
} }
} }
}

View file

@ -1,8 +1,12 @@
{ {
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Trace"
"Microsoft.AspNetCore": "Warning" }
} },
"Configuration": {
// DO NOT USE THIS AUTHTOKEN IN PRODUCTION!!!
"AuthToken": "hi",
"UseSentry": false
} }
} }

View file

@ -2,8 +2,26 @@
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Information",
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning",
"Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information"
} }
}, },
"AllowedHosts": "*" "AllowedHosts": "*",
"Configuration": {
"AuthToken": "CHANGE-ME",
"UseSwagger": true,
"LogRequests": true,
"UseSentry": true
},
"Sentry": {
"Dsn": "https://92b5c863371d9362c50a39b3faccd26d@sentry.csw.im/5",
"SendDefaultPii": true,
"MaxRequestBodySize": "Always",
"MinimumBreadcrumbLevel": "Debug",
"MinimumEventLevel": "Warning",
"AttachStackTrace": true,
"Debug": true,
"DiagnosticLevel": "Error",
"TracesSampleRate": 1.0
}
} }