summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Startup.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 23:43:58 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 23:43:58 -0400
commiteaabd91f31db35e050b7215f5f36568bf6982a83 (patch)
tree46b3a45d47a88acca28795de8060e50f6bbbd0f7 /src/StardewModdingAPI.Web/Startup.cs
parent0d6f6a9acef175fd9ea0df6790111d8d58d7f368 (diff)
downloadSMAPI-eaabd91f31db35e050b7215f5f36568bf6982a83.tar.gz
SMAPI-eaabd91f31db35e050b7215f5f36568bf6982a83.tar.bz2
SMAPI-eaabd91f31db35e050b7215f5f36568bf6982a83.zip
authenticate GitHub queries if auth details are configured (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Startup.cs')
-rw-r--r--src/StardewModdingAPI.Web/Startup.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Web/Startup.cs b/src/StardewModdingAPI.Web/Startup.cs
index b668c63e..4806aefe 100644
--- a/src/StardewModdingAPI.Web/Startup.cs
+++ b/src/StardewModdingAPI.Web/Startup.cs
@@ -29,6 +29,7 @@ namespace StardewModdingAPI.Web
{
this.Configuration = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
+ .AddEnvironmentVariables()
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
.AddEnvironmentVariables()