- Configurazione Kestrel ottimizzata per ambienti Docker/Unraid: porta 8080 in produzione, HTTPS redirect solo in sviluppo - Endpoint /health sempre attivo per healthcheck automatici - Aggiunti file docker-compose.yml e unraid-template.xml per deploy e gestione nativa su Unraid (senza Portainer) - Nuova guida UNRAID_NATIVE_INSTALL.md per installazione, update e troubleshooting su Unraid - Logging e appsettings separati per Development/Production - launchSettings.json aggiornato e semplificato - Rimosso package Azure Containers Tools dal csproj; aggiunto target MSBuild per push automatico su Gitea Registry dopo publish - Algoritmo SMA più robusto: filtra dati nulli/invalidi e gestisce casi di dati insufficienti - Pronto per deploy professionale, aggiornamento e gestione semplificata in ambienti containerizzati
49 lines
1.9 KiB
XML
49 lines
1.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
|
|
|
|
<!-- Docker Publishing -->
|
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
|
<DockerfileContext>.</DockerfileContext>
|
|
|
|
<!-- Auto-versioning -->
|
|
<Version>1.0.0</Version>
|
|
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
|
<FileVersion>1.0.0.0</FileVersion>
|
|
</PropertyGroup>
|
|
|
|
<!-- Post-Publish: Push to Gitea Registry -->
|
|
<Target Name="PushToGitea" AfterTargets="Publish" Condition="'$(Configuration)' == 'Release'">
|
|
<Message Importance="high" Text="?? Pushing to Gitea Container Registry..." />
|
|
|
|
<!-- Tag with 'latest' -->
|
|
<Exec Command="docker tag tradingbot:latest gitea.encke-hake.ts.net/alby96/encelado/tradingbot:latest"
|
|
ContinueOnError="true"
|
|
IgnoreExitCode="false" />
|
|
|
|
<!-- Tag with version -->
|
|
<Exec Command="docker tag tradingbot:latest gitea.encke-hake.ts.net/alby96/encelado/tradingbot:$(Version)"
|
|
ContinueOnError="true"
|
|
IgnoreExitCode="false" />
|
|
|
|
<!-- Push 'latest' -->
|
|
<Exec Command="docker push gitea.encke-hake.ts.net/alby96/encelado/tradingbot:latest"
|
|
ContinueOnError="true"
|
|
IgnoreExitCode="false" />
|
|
|
|
<!-- Push versioned -->
|
|
<Exec Command="docker push gitea.encke-hake.ts.net/alby96/encelado/tradingbot:$(Version)"
|
|
ContinueOnError="true"
|
|
IgnoreExitCode="false" />
|
|
|
|
<Message Importance="high" Text="? Image pushed to Gitea Registry!" />
|
|
<Message Importance="high" Text=" - gitea.encke-hake.ts.net/alby96/encelado/tradingbot:latest" />
|
|
<Message Importance="high" Text=" - gitea.encke-hake.ts.net/alby96/encelado/tradingbot:$(Version)" />
|
|
</Target>
|
|
|
|
</Project>
|