From 09a05fc0be427abd07ad3db5896bde7b812f0b62 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 9 May 2021 19:34:22 +0430 Subject: [PATCH] #112 copying GanjoorService settings to GanjooRazor --- GanjooRazor/GanjooRazor.csproj | 10 ++++++ GanjooRazor/Program.cs | 6 ---- GanjooRazor/appsettings.json | 62 +++++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 7 deletions(-) diff --git a/GanjooRazor/GanjooRazor.csproj b/GanjooRazor/GanjooRazor.csproj index 52211c15..ea3dca9f 100644 --- a/GanjooRazor/GanjooRazor.csproj +++ b/GanjooRazor/GanjooRazor.csproj @@ -4,6 +4,16 @@ net5.0-windows + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/GanjooRazor/Program.cs b/GanjooRazor/Program.cs index 4a1ec59b..cd678f44 100644 --- a/GanjooRazor/Program.cs +++ b/GanjooRazor/Program.cs @@ -1,11 +1,5 @@ using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GanjooRazor { diff --git a/GanjooRazor/appsettings.json b/GanjooRazor/appsettings.json index d9d9a9bf..78465e88 100644 --- a/GanjooRazor/appsettings.json +++ b/GanjooRazor/appsettings.json @@ -6,5 +6,65 @@ "Microsoft.Hosting.Lifetime": "Information" } }, - "AllowedHosts": "*" + "AllowedHosts": "*", + "ConnectionStrings": { + "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=museum;Trusted_Connection=True;MultipleActiveResultSets=true" + }, + "PictureFileService": { + "StoragePath": "C:\\museum", + "ResizedImageContentType": "image/jpeg", + "NormalImageMaxWidth": "800", + "NormalImageMaxHeight": "1350", + "ThumbnailImageWidth": "300", + "ThumbnailMaxHeight": "500" + }, + "Security": { + "Secret": "k4Fy7pDsc0LgXQ8PCCfZtwmju5Ed8asc", + "DefaultTokenExpirationInSeconds": "3600" + }, + "SmptConfig": { + "Server": "smtp.gmail.com", + "Port": "587", + "UseSsl": "true", + "UseTls": "true", + "Username": "test@gmail.com", + "Password": "password", + "From": "test@gmail.com" + }, + "LocalSqliteImport": { + "FilePath": "C:\\Users\\moham\\AppData\\Local\\ganjoor\\ganjoor\\ganjoor.s3db" + }, + "IIS": { + "UploadLimit": "52428800" + }, + "AudioMySqlServer": { + "Server": "localhost", + "Username": "root", + "Password": "", + "Database": "adab", + "2ndDatabase": "audio", + "2ndUsername": "audio", + "2ndPassword": "", + "SongsDatabase": "golha", + "SongsUsername": "root", + "SongsPassword": "", + "ReportedCommentsDatabase": "rpcmnts", + "ReportedCommentsUsername": "root", + "ReportedCommentsPassword": "", + "PoetImagesImportPath": "C:\\Users\\moham\\source\\repos\\GanjooRazor\\wwwroot\\image\\poets" + }, + "AudioSFPServer": { + "Host": "localhost", + "Port": "22", + "Username": "root", + "Password": "", + "RootPath": "/home" + }, + "AudioUploadService": { + "Enabled": "True", + "TempUploadPath": "C:\\tempaudio", + "LocalAudioRepositoryPath": "D:\\My Documents\\My Web Design\\ganjoor\\www\\i", + "CurrentSoundFilesFolder": "a2" + } + }