From eb8c30402083396062fb45cefe357a67f9dc3ee3 Mon Sep 17 00:00:00 2001 From: cswimr Date: Tue, 31 Dec 2024 19:02:37 -0500 Subject: [PATCH] chore(tooling): configure appsettings and launchsettings --- Properties/launchSettings.json | 65 ++++++++++++++++++---------------- appsettings.Development.json | 12 ++++--- appsettings.json | 22 ++++++++++-- 3 files changed, 62 insertions(+), 37 deletions(-) diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json index 47575f0..e011649 100644 --- a/Properties/launchSettings.json +++ b/Properties/launchSettings.json @@ -1,38 +1,41 @@ { "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:7739", - "sslPort": 44309 + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:48070", + "sslPort": 44382 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5150", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" } }, - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "http://localhost:5123", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "https://localhost:7268;http://localhost:5123", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7047;http://localhost:5150", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" } } } +} diff --git a/appsettings.Development.json b/appsettings.Development.json index ff66ba6..257a057 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -1,8 +1,12 @@ { "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } + "LogLevel": { + "Default": "Trace" + } + }, + "Configuration": { + // DO NOT USE THIS AUTHTOKEN IN PRODUCTION!!! + "AuthToken": "hi", + "UseSentry": false } } diff --git a/appsettings.json b/appsettings.json index 4d56694..b422dcd 100644 --- a/appsettings.json +++ b/appsettings.json @@ -2,8 +2,26 @@ "Logging": { "LogLevel": { "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 + } }