Fixes and config
This commit is contained in:
@@ -5,13 +5,30 @@
|
|||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"Database": {
|
||||||
"Default": ""
|
"ConnectionString": "Host=localhost;Port=59000;Database=musify_db;Username=postgres;Password=postgres"
|
||||||
},
|
},
|
||||||
"Storage": {
|
"MassTransit": {
|
||||||
"BucketName": "",
|
"Address": "rabbitmq://127.0.0.1:5672",
|
||||||
|
"Username": "guest",
|
||||||
|
"Password": "guest"
|
||||||
|
},
|
||||||
|
"InfrastructureStorage": {
|
||||||
|
"Address": "http://localhost:8333",
|
||||||
|
"AccessKey": "admin_access_key",
|
||||||
|
"SecretAccessKey": "admin_secret_key",
|
||||||
|
"ForcePathStyle": true,
|
||||||
|
"UseHttp": true
|
||||||
|
},
|
||||||
|
"ApplicationStorage": {
|
||||||
|
"Bucket": "webapi-storage"
|
||||||
|
},
|
||||||
|
"OpenTelemetry": {
|
||||||
|
"OtlpEndpoint": "http://localhost:4317"
|
||||||
|
},
|
||||||
|
"Workers": {
|
||||||
"Routes": {
|
"Routes": {
|
||||||
"Uploads": ""
|
"TemporaryFilesDirectory": "D:\\tempsFilesDev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+51
-35
@@ -6,11 +6,30 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"ConnectionStrings": {
|
"Database": {
|
||||||
"Default": ""
|
"ConnectionString": ""
|
||||||
},
|
},
|
||||||
"PlayListConfiguration": {
|
"MassTransit": {
|
||||||
|
"Address": "",
|
||||||
|
"Username": "",
|
||||||
|
"Password": ""
|
||||||
|
},
|
||||||
|
"InfrastructureStorage": {
|
||||||
|
"Address": "",
|
||||||
|
"AccessKey": "",
|
||||||
|
"SecretAccessKey": "",
|
||||||
|
"ForcePathStyle": false,
|
||||||
|
"UseHttp": false
|
||||||
|
},
|
||||||
|
"ApplicationStorage": {
|
||||||
|
"Bucket": ""
|
||||||
|
},
|
||||||
|
"OpenTelemetry": {
|
||||||
|
"OtlpEndpoint": ""
|
||||||
|
},
|
||||||
|
"PlayList": {
|
||||||
"Routes": {
|
"Routes": {
|
||||||
|
"UploadsFolder": "uploads",
|
||||||
"ParentFolders": "PlayLists",
|
"ParentFolders": "PlayLists",
|
||||||
"OriginalPicturesFolder": "OriginalPictures",
|
"OriginalPicturesFolder": "OriginalPictures",
|
||||||
"SmallPicturesFolder": "SmallPictures",
|
"SmallPicturesFolder": "SmallPictures",
|
||||||
@@ -30,35 +49,9 @@
|
|||||||
"LargePictureHeight": 512
|
"LargePictureHeight": 512
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Keycloak": {
|
"Track": {
|
||||||
"Address": "1",
|
|
||||||
"Realm": "1",
|
|
||||||
"Username": "1",
|
|
||||||
"Password": "1"
|
|
||||||
},
|
|
||||||
"Database": {
|
|
||||||
"ConnectionString": "Host=localhost;Port=59000;Database=musify_db;Username=postgres;Password=postgres"
|
|
||||||
},
|
|
||||||
"ApplicationStorage": {
|
|
||||||
"BucketName": "webapi-storage"
|
|
||||||
},
|
|
||||||
"InfrastructureStorage": {
|
|
||||||
"Address": "http://localhost:8333",
|
|
||||||
"AccessKey": "admin_access_key",
|
|
||||||
"SecretAccessKey": "admin_secret_key",
|
|
||||||
"ForcePathStyle": true,
|
|
||||||
"UseHttp": true
|
|
||||||
},
|
|
||||||
"Messaging": {
|
|
||||||
"Address": "rabbitmq://127.0.0.1:5672",
|
|
||||||
"Username": "guest",
|
|
||||||
"Password": "guest"
|
|
||||||
},
|
|
||||||
"OpenTelemetry": {
|
|
||||||
"OtlpEndpoint": "http://localhost:4317"
|
|
||||||
},
|
|
||||||
"TrackConfiguration": {
|
|
||||||
"Routes": {
|
"Routes": {
|
||||||
|
"UploadsFolder": "uploads",
|
||||||
"ParentFolder": "Tracks",
|
"ParentFolder": "Tracks",
|
||||||
"OriginalPicturesFolder": "OriginalPictures",
|
"OriginalPicturesFolder": "OriginalPictures",
|
||||||
"SmallPicturesFolder": "SmallPictures",
|
"SmallPicturesFolder": "SmallPictures",
|
||||||
@@ -81,10 +74,33 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AudioTranscoder": {
|
"AudioTranscoder": {
|
||||||
"Routes": {
|
"TranscodingTimeout": "00:05:00",
|
||||||
"WorkingDirectory": "D:\\tempsFilesDev"
|
"Ffmpeg": {
|
||||||
},
|
"ExecutableName": "ffmpeg",
|
||||||
"TranscodingTimeout": "00:05:00"
|
"ManifestFileName": "manifest.mpd",
|
||||||
|
"AudioCodec": "aac",
|
||||||
|
"AudioBitrate": "128k",
|
||||||
|
"AudioChannels": 2,
|
||||||
|
"AudioSampleRate": 48000,
|
||||||
|
"AudioProfile": "aac_low",
|
||||||
|
"SegmentDurationSeconds": 4,
|
||||||
|
"InitSegmentName": "init-stream$RepresentationID$.m4s",
|
||||||
|
"MediaSegmentName": "chunk-stream$RepresentationID$-$Number$.m4s",
|
||||||
|
"AdditionalArguments": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"UploadIntent": {
|
||||||
|
"UploadUrlExpiresInSeconds": 120,
|
||||||
|
"MaxActiveUploadIntentsPerUser": 5,
|
||||||
|
"MaxActiveUploadBytesPerUser": 209715200,
|
||||||
|
"MaxUploadBytes": 104857600,
|
||||||
|
"DefaultExpectedPictureSizeBytes": 10485760,
|
||||||
|
"DefaultExpectedAudioSizeBytes": 104857600,
|
||||||
|
"ExpirationJobIntervalSeconds": 300,
|
||||||
|
"ExpiredIntentsRetentionDays": 7,
|
||||||
|
"TempRootPrefix": "temp",
|
||||||
|
"TempUploadsRetentionDays": 3,
|
||||||
|
"TempCleanupJobIntervalSeconds": 3600
|
||||||
},
|
},
|
||||||
"Workers": {
|
"Workers": {
|
||||||
"Routes": {
|
"Routes": {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Ardalis.Result;
|
using Ardalis.Result;
|
||||||
|
using IResult = Microsoft.AspNetCore.Http.IResult;
|
||||||
|
|
||||||
namespace WebApi.Extensions;
|
namespace WebApi.Extensions;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Mediator;
|
|||||||
using Musify.Application;
|
using Musify.Application;
|
||||||
using Musify.Infrastructure.MassTransit;
|
using Musify.Infrastructure.MassTransit;
|
||||||
using Musify.Infrastructure.Persistence;
|
using Musify.Infrastructure.Persistence;
|
||||||
|
using Musify.Application.Configuration;
|
||||||
using Musify.Infrastructure.Services;
|
using Musify.Infrastructure.Services;
|
||||||
using OpenTelemetry.Logs;
|
using OpenTelemetry.Logs;
|
||||||
using OpenTelemetry.Metrics;
|
using OpenTelemetry.Metrics;
|
||||||
@@ -16,10 +17,12 @@ public static class ServiceCollectionExtensions
|
|||||||
{
|
{
|
||||||
public static IServiceCollection AddApplicationServices(this IServiceCollection services, IConfiguration configuration)
|
public static IServiceCollection AddApplicationServices(this IServiceCollection services, IConfiguration configuration)
|
||||||
{
|
{
|
||||||
services.AddApplicationConfigurations(configuration);
|
|
||||||
services.AddDatabase(configuration);
|
services.AddDatabase(configuration);
|
||||||
services.AddKeycloakService(configuration);
|
services.AddApplicationStorageConfiguration(configuration);
|
||||||
|
services.AddPlayListConfiguration(configuration);
|
||||||
|
services.AddTrackConfiguration(configuration);
|
||||||
services.AddStorageService(configuration);
|
services.AddStorageService(configuration);
|
||||||
|
services.AddUploadIntentConfiguration(configuration);
|
||||||
services.AddMassTransitClient(configuration);
|
services.AddMassTransitClient(configuration);
|
||||||
services.AddMediator();
|
services.AddMediator();
|
||||||
services.AddOpenApi();
|
services.AddOpenApi();
|
||||||
|
|||||||
@@ -11,8 +11,9 @@
|
|||||||
<PackageReference Include="Ardalis.Result" Version="10.1.0" />
|
<PackageReference Include="Ardalis.Result" Version="10.1.0" />
|
||||||
<PackageReference Include="AWSSDK.S3" Version="4.0.23.4" />
|
<PackageReference Include="AWSSDK.S3" Version="4.0.23.4" />
|
||||||
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="12.1.1" />
|
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="12.1.1" />
|
||||||
<PackageReference Include="MassTransit" Version="9.1.1" />
|
<PackageReference Include="MassTransit" Version="9.0.1" />
|
||||||
<PackageReference Include="MassTransit.RabbitMQ" Version="9.1.1" />
|
<PackageReference Include="MassTransit.EntityFrameworkCore" Version="9.0.1" />
|
||||||
|
<PackageReference Include="MassTransit.RabbitMQ" Version="9.0.1" />
|
||||||
<PackageReference Include="Mediator.Abstractions" Version="3.0.2" />
|
<PackageReference Include="Mediator.Abstractions" Version="3.0.2" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.8" />
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.8" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.8" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.8" />
|
||||||
|
|||||||
Reference in New Issue
Block a user