mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-07-02 17:15:43 +02:00
global: move more config to env vars
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user