diff --git a/.env b/.env new file mode 100644 index 0000000..dc5a45a --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +NOTESNOOK_API_SECRET= +ORIGIN_CERT_PATH= +ORIGIN_CERT_KEY_PATH= \ No newline at end of file diff --git a/Notesnook.API/Notesnook.API.csproj b/Notesnook.API/Notesnook.API.csproj index 839f61e..31d6f73 100644 --- a/Notesnook.API/Notesnook.API.csproj +++ b/Notesnook.API/Notesnook.API.csproj @@ -10,6 +10,7 @@ + diff --git a/Notesnook.API/Program.cs b/Notesnook.API/Program.cs index a3c8004..427d2fa 100644 --- a/Notesnook.API/Program.cs +++ b/Notesnook.API/Program.cs @@ -17,20 +17,9 @@ You should have received a copy of the Affero GNU General Public License along with this program. If not, see . */ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net; using System.Threading.Tasks; -using Amazon.S3; -using Amazon.S3.Model; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Server.Kestrel.Https; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; using Streetwriters.Common; namespace Notesnook.API @@ -39,6 +28,8 @@ namespace Notesnook.API { public static async Task Main(string[] args) { + DotNetEnv.Env.TraversePath().Load(); + IHost host = CreateHostBuilder(args).Build(); await host.RunAsync(); } diff --git a/Streetwriters.Identity/Program.cs b/Streetwriters.Identity/Program.cs index 5b3a0d0..71bc587 100644 --- a/Streetwriters.Identity/Program.cs +++ b/Streetwriters.Identity/Program.cs @@ -33,6 +33,8 @@ namespace Streetwriters.Identity { public static async Task Main(string[] args) { + DotNetEnv.Env.TraversePath().Load(); + IHost host = CreateHostBuilder(args).Build(); await host.RunAsync(); } diff --git a/Streetwriters.Identity/Streetwriters.Identity.csproj b/Streetwriters.Identity/Streetwriters.Identity.csproj index 93fa154..32ce847 100644 --- a/Streetwriters.Identity/Streetwriters.Identity.csproj +++ b/Streetwriters.Identity/Streetwriters.Identity.csproj @@ -13,6 +13,7 @@ +