This commit is contained in:
Michal Vrba
2026-09-26 22:37:02 +02:00
parent 95e3a7972d
commit e20b096698
7 changed files with 67 additions and 1 deletions
+5
View File
@@ -7,6 +7,11 @@
<base href="/" /> <base href="/" />
<title>WeShare — Zdieľame medzi sebou (.NET 10)</title> <title>WeShare — Zdieľame medzi sebou (.NET 10)</title>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="shortcut icon" href="favicon.ico" />
<!-- Tailwind CSS --> <!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.tailwindcss.com"></script>
+9 -1
View File
@@ -9,11 +9,19 @@ var builder = WebApplication.CreateBuilder(args);
// Configure options // Configure options
builder.Services.Configure<WeShareOptions>(builder.Configuration.GetSection(WeShareOptions.SectionName)); builder.Services.Configure<WeShareOptions>(builder.Configuration.GetSection(WeShareOptions.SectionName));
// Configure Large File form options for chunk transfer // Configure Large File form options and IIS / Kestrel server limits for chunk transfer
builder.Services.Configure<FormOptions>(options => builder.Services.Configure<FormOptions>(options =>
{ {
options.MultipartBodyLengthLimit = 50 * 1024 * 1024; // 50MB per chunk form request options.MultipartBodyLengthLimit = 50 * 1024 * 1024; // 50MB per chunk form request
}); });
builder.Services.Configure<IISServerOptions>(options =>
{
options.MaxRequestBodySize = 5368709120; // 5 GB
});
builder.WebHost.ConfigureKestrel(options =>
{
options.Limits.MaxRequestBodySize = 5368709120; // 5 GB
});
// Register services // Register services
builder.Services.AddSingleton<IPasswordHasher, PasswordHasher>(); builder.Services.AddSingleton<IPasswordHasher, PasswordHasher>();
+7
View File
@@ -5,10 +5,17 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException> <BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
<DefaultItemExcludes>$(DefaultItemExcludes);publish\**</DefaultItemExcludes>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="QRCoder" Version="1.8.0" /> <PackageReference Include="QRCoder" Version="1.8.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="web.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project> </Project>
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<!-- AspNetCoreModuleV2 handler for IIS -->
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet"
arguments=".\WeShare.dll"
stdoutLogEnabled="true"
stdoutLogFile=".\logs\stdout"
hostingModel="inprocess">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
</environmentVariables>
</aspNetCore>
<!-- IIS Request Filtering: Allow Large File Chunks (up to ~4.29 GB) -->
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295" />
</requestFiltering>
</security>
</system.webServer>
</location>
</configuration>
Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

+18
View File
@@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<rect width="32" height="32" rx="8" fill="#070b14"/>
<!-- User A Node (Purple) -->
<circle cx="7" cy="9" r="3" fill="#C084FC" />
<!-- User B Node (Cyan) -->
<circle cx="25" cy="9" r="3" fill="#22D3EE" />
<!-- Center Shared Node (Indigo) -->
<circle cx="16" cy="19" r="3.5" fill="#818CF8" />
<!-- Connecting W stroke -->
<path d="M7 12L11 25L16 19L21 25L25 12" stroke="url(#w-fav-grad)" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="w-fav-grad" x1="7" y1="9" x2="25" y2="9" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#C084FC"/>
<stop offset="50%" stop-color="#818CF8"/>
<stop offset="100%" stop-color="#22D3EE"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 822 B