global: move more config to env vars

This commit is contained in:
Abdullah Atta committed 2022-12-29 11:18:29 +05:00
1 parent 9463d484a4
commit 3f89ebc214
24 files changed
+101 -167

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ namespace Notesnook.API
.AddOAuth2Introspection("introspection", options =>
{
options.Authority = Servers.IdentityServer.ToString();
options.ClientSecret = Environment.GetEnvironmentVariable("NOTESNOOK_API_SECRET");
options.ClientSecret = Constants.NOTESNOOK_API_SECRET;
options.ClientId = "notesnook";
options.DiscoveryPolicy.RequireHttps = false;
options.TokenRetriever = new Func<HttpRequest, string>(req =>