Fix Styling for kanban board, removed encrpytion for gmail as it was affecting connection
This commit is contained in:
@@ -5,12 +5,14 @@ using System.Data.Common;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using JobTrackerApi.Models;
|
||||
using JobTrackerApi.Services;
|
||||
using System.Diagnostics;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Net;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using JobTrackerApi.Services.JobImport;
|
||||
using JobTrackerApi.Services.JobImport.Plugins;
|
||||
@@ -74,7 +76,22 @@ builder.Services.AddCors(options =>
|
||||
|
||||
// Add controllers
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddDataProtection();
|
||||
var dataRoot = (builder.Configuration["Data:Root"] ?? "").Trim();
|
||||
if (string.IsNullOrWhiteSpace(dataRoot))
|
||||
{
|
||||
dataRoot = builder.Environment.ContentRootPath;
|
||||
}
|
||||
if (!Path.IsPathRooted(dataRoot))
|
||||
{
|
||||
dataRoot = Path.Combine(builder.Environment.ContentRootPath, dataRoot);
|
||||
}
|
||||
Directory.CreateDirectory(dataRoot);
|
||||
var dataProtectionKeysPath = Path.Combine(dataRoot, "keys");
|
||||
Directory.CreateDirectory(dataProtectionKeysPath);
|
||||
|
||||
builder.Services.AddDataProtection()
|
||||
.PersistKeysToFileSystem(new DirectoryInfo(dataProtectionKeysPath))
|
||||
.SetApplicationName("JobTracker");
|
||||
builder.Services.AddHostedService<RulesHostedService>();
|
||||
builder.Services.AddHostedService<DailyExportHostedService>();
|
||||
builder.Services.AddHostedService<JobEnrichmentHostedService>();
|
||||
|
||||
Reference in New Issue
Block a user