From ad561050550dd6744ece2a40ec6d8242f41d9c7f Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 5 Dec 2017 18:58:51 -0600 Subject: [PATCH] update .gitignore, add appsettings templates --- .gitignore | 27 ++++++++++++++++++++------- src/FilterLists.Api/appsettings.json | 22 ++++++++++++++++++++++ src/FilterLists.Web/appsettings.json | 23 +++++++++++++++++++++++ 3 files changed, 65 insertions(+), 7 deletions(-) create mode 100644 src/FilterLists.Api/appsettings.json create mode 100644 src/FilterLists.Web/appsettings.json diff --git a/.gitignore b/.gitignore index f8a0c970c..7978be7a8 100644 --- a/.gitignore +++ b/.gitignore @@ -24,11 +24,14 @@ bld/ [Oo]bj/ [Ll]og/ -# Visual Studio 2015 cache/options directory +# Visual Studio 2015/2017 cache/options directory .vs/ # Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/ +# Visual Studio 2017 auto generated files +Generated\ Files/ + # MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* @@ -51,6 +54,10 @@ project.fragment.lock.json artifacts/ **/Properties/launchSettings.json +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio *_i.c *_p.c *_i.h @@ -171,11 +178,11 @@ PublishScripts/ # NuGet Packages *.nupkg # The packages folder can be ignored because of Package Restore -**/packages/* +**/[Pp]ackages/* # except build/, which is used as an MSBuild target. -!**/packages/build/ +!**/[Pp]ackages/build/ # Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config +#!**/[Pp]ackages/repositories.config # NuGet v3's project.json files produces more ignorable files *.nuget.props *.nuget.targets @@ -247,7 +254,7 @@ FakesAssemblies/ .ntvs_analysis.dat node_modules/ -# Typescript v1 declaration files +# TypeScript v1 declaration files typings/ # Visual Studio 6 build log @@ -304,7 +311,13 @@ __pycache__/ # OpenCover UI analysis results OpenCover/ +# Azure Stream Analytics local run output +ASALocalRun/ + # FilterLists Custom Ignores gs/Private.gs -appsettings.json -src/FilterLists.Web/wwwroot/dist \ No newline at end of file +src/FilterLists.Api/appsettings.development.json +src/FilterLists.Api/appsettings.production.json +src/FilterLists.Web/wwwroot/dist +src/FilterLists.Web/appsettings.development.json +src/FilterLists.Web/appsettings.production.json \ No newline at end of file diff --git a/src/FilterLists.Api/appsettings.json b/src/FilterLists.Api/appsettings.json new file mode 100644 index 000000000..03926ef1f --- /dev/null +++ b/src/FilterLists.Api/appsettings.json @@ -0,0 +1,22 @@ +/* + WARNING - This file will be checked into source control. Do not change this file. + Use this as an example file only. + Use {env.EnvironmentName}.json as your configuration file as it will not be checked into source control. + {env.EnvironmentName} values : development, staging, production +*/ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + }, + "ConnectionStrings": { + "FilterListsConnection": "FilterListsConnectionValue" + }, + "ApplicationInsights": { + "InstrumentationKey": "InstrumentationKeyValue" + } +} \ No newline at end of file diff --git a/src/FilterLists.Web/appsettings.json b/src/FilterLists.Web/appsettings.json new file mode 100644 index 000000000..e73e2c0c8 --- /dev/null +++ b/src/FilterLists.Web/appsettings.json @@ -0,0 +1,23 @@ +/* + WARNING - This file will be checked into source control. Do not change this file. + Use this as an example file only. + Use {env.EnvironmentName}.json as your configuration file as it will not be checked into source control. + {env.EnvironmentName} values : development, staging, production +*/ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + }, + "ApplicationInsights": { + "InstrumentationKey": "InstrumentationKeyValue" + }, + "FilterListsApi": { + "Url": "https://api.filterlists.com/", + "Version": 1 + } +} \ No newline at end of file