31 KiB
TuneRipper Deployment Guide - IIS on Windows 11
This guide provides step-by-step instructions for manually deploying the TuneRipper Blazor WebAssembly application and API to Internet Information Services (IIS) on Windows 11.
Deployment Scenarios
Scenario A: Production Server (Recommended)
Deploy pre-built applications to a clean production server. Requirements: Only .NET 10 Hosting Bundle + IIS
Scenario B: Build + Deploy on Same Machine
Build and deploy applications on the same machine. Requirements: .NET 10 SDK + .NET 10 Hosting Bundle + IIS
Prerequisites
System Requirements
- Windows 11 (Pro, Enterprise, or Education edition recommended)
- IIS (Internet Information Services) already installed and configured
- Administrative privileges
- Internet connection for downloading dependencies
- Domain names configured (for production HTTPS setup)
Software Dependencies
- .NET 10 Hosting Bundle (production) OR .NET 10 SDK (development)
- yt-dlp.exe (for video processing)
- ffmpeg (required by yt-dlp for audio conversion)
- Let's Encrypt ACME tool (for SSL certificates in production)
Step 0: Install Chocolatey Package Manager (Recommended)
?? Chocolatey Alternative: Use Chocolatey to automate the installation of prerequisites instead of manual downloads and installations.
0.1 Install Chocolatey
Chocolatey is a powerful package manager for Windows that simplifies software installation and management.
-
Open PowerShell as Administrator:
- Press
Win + Xand select "Windows PowerShell (Admin)" or "Terminal (Admin)"
- Press
-
Check Execution Policy (run this first):
Get-ExecutionPolicy- If it shows
Restricted, temporarily change it:
Set-ExecutionPolicy AllSigned - If it shows
-
Install Chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) -
Verify Installation:
choco --version -
Restart PowerShell or run:
refreshenv
0.2 Install Prerequisites with Chocolatey
Once Chocolatey is installed, you can use it to install most prerequisites automatically:
# Install FFmpeg
choco install ffmpeg -y
# Install yt-dlp
choco install yt-dlp -y
# Install curl (for testing)
choco install curl -y
# Optional: Install Git (if not already installed)
choco install git -y
# Optional: Install 7-Zip (for handling archives)
choco install 7zip -y
# Optional: Install Notepad++ (for editing config files)
choco install notepadplusplus -y
Advantages of using Chocolatey:
- ? Automatic PATH configuration - No manual PATH editing needed
- ? Automatic updates available via
choco upgrade - ? Consistent installation across different machines
- ? Easy uninstallation if needed
- ? No manual extraction or file placement required
0.3 Verify Chocolatey Installations
After installing with Chocolatey, verify the tools are available:
# Verify FFmpeg
ffmpeg -version
# Verify yt-dlp
yt-dlp --version
# Verify curl
curl --version
Step 1: Install .NET 10 Hosting Bundle for IIS
Critical: This step is required for ALL deployment scenarios
1.1 Install .NET 10 Hosting Bundle
Option A: Using Chocolatey (Recommended)
# Install .NET 10 Hosting Bundle via Chocolatey
choco install dotnet-hosting -y
# Alternatively, install specific version (replace x.x.x with actual version)
# choco install dotnet-hosting --version=10.0.x -y
Option B: Manual Download (Alternative)
- Go to Microsoft .NET Downloads
- Scroll to "ASP.NET Core Runtime" section
- Under "Run server apps", find "Hosting Bundle"
- Download "Hosting Bundle" for Windows (e.g.,
dotnet-hosting-10.0.x-win.exe) - Important: This is different from the SDK - it's specifically for IIS hosting
1.2 Complete Hosting Bundle Installation
- If installed manually, close all IIS Manager windows and web browsers
- If installed manually, run the downloaded hosting bundle installer as Administrator
- Critical: Restart IIS services by running this command in Command Prompt as Administrator:
iisreset /restart - Alternatively, restart the entire computer to ensure all services are updated
1.3 Verify Hosting Bundle Installation
- Open Command Prompt as Administrator
- Run:
dotnet --info - Look for the ASP.NET Core Module in IIS:
%windir%\system32\inetsrv\appcmd.exe list modules - You should see
AspNetCoreModuleV2in the output - Check the registry for the module (PowerShell as Administrator):
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\IIS Extensions\IIS AspNetCore Module V2"
1.4 Verify ASP.NET Core Module Installation
- Open IIS Manager (
Win + R?inetmgr) - Select your server name in the left panel
- Double-click "Modules" in the main panel
- Look for "AspNetCoreModuleV2" - it should be present and enabled
- If not visible, you may need to restart IIS again:
iisreset
Step 2: Install Required Tools
2.1 Install Prerequisites with Chocolatey (Recommended)
If you completed Step 0 above, your prerequisites should already be installed. If not, install them now:
# Open PowerShell as Administrator and run:
choco install ffmpeg yt-dlp -y
2.2 Manual Installation (Alternative to Chocolatey)
2.2.1 Download yt-dlp (Manual)
- Go to yt-dlp releases
- Download the latest
yt-dlp.exe(Windows executable) - Important: Keep this file ready for later deployment
2.2.2 Install FFmpeg (Manual)
- Go to FFmpeg downloads
- Choose "Windows" ? "Windows builds by BtbN"
- Download the latest "ffmpeg-master-latest-win64-gpl.zip"
- Extract to
C:\ffmpeg\ - Add
C:\ffmpeg\binto your System PATH:- Press
Win + X, select "System" - Click "Advanced system settings"
- Click "Environment Variables"
- Under "System Variables", find and edit "Path"
- Click "New" and add:
C:\ffmpeg\bin - Click OK to save all dialogs
- Press
- Restart Command Prompt and verify:
ffmpeg -version
2.3 Install Let's Encrypt ACME Tool
Option A: Using Chocolatey (Recommended)
# Install win-acme for Windows/IIS SSL certificates
choco install win-acme -y
Option B: Manual Installation (Alternative) For production deployment with custom domains, install an ACME client manually:
- Install win-acme (Recommended for Windows/IIS):
- Go to win-acme releases
- Download the latest
win-acme.v2.x.x.x.pluggable.zip - Extract to
C:\win-acme\
2.4 Verify All Tool Installations
Run these commands to verify all prerequisites are properly installed:
# Check .NET installation
dotnet --version
# Check FFmpeg
ffmpeg -version
# Check yt-dlp
yt-dlp --version
# Check win-acme (if installed via Chocolatey)
wacs --version
# List all Chocolatey installed packages
choco list --local-only
Step 3: Get Application Files
Option A: Use Pre-Built Files (Production Deployment)
If you have pre-built application files from another machine:
- Copy the published API files to:
C:\Publish\TuneRipper.Api\ - Copy the published Blazor WebAssembly files to:
C:\Publish\TuneRipper\ - Skip to Step 4 (Prepare Deployment Files)
Option B: Build Applications (Build + Deploy Scenario)
If you need to build the applications on this machine, continue below:
3B.1 Install .NET 10 SDK (If Building Locally)
Option A: Using Chocolatey (Recommended)
# Install .NET 10 SDK via Chocolatey
choco install dotnet-sdk -y
# Or install specific version (replace x.x.x with actual version)
# choco install dotnet-sdk --version=10.0.x -y
Option B: Manual Installation (Alternative)
- Go to Microsoft .NET Downloads
- Download and install the .NET 10 SDK
- Restart your computer after installation
3B.2 Verify Build Environment
Before publishing, ensure your development environment is ready:
- Open Command Prompt in your project directory:
C:\DevHome\TuneRipper - Run:
dotnet --version(should show 10.0.x) - Run:
dotnet restore(restore NuGet packages) - Run:
dotnet build(verify everything compiles)
3B.3 Publish the API (TuneRipper.Api)
Using Visual Studio:
- Open the TuneRipper solution in Visual Studio 2022
- Ensure you have .NET 10 workload installed in Visual Studio:
- Go to Tools ? Get Tools and Features
- Under Workloads, ensure "ASP.NET and web development" is checked
- Under Individual Components, ensure .NET 10 Runtime is selected
- Right-click on TuneRipper.Api project
- Select "Publish..."
- Choose "Folder" as the publish target
- Set publish folder to:
C:\Publish\TuneRipper.Api - Click "Show all settings" and configure:
- Configuration:
Release - Target Framework:
net10.0 - Deployment Mode:
Framework-dependent - Target Runtime:
Portable
- Configuration:
- Click "Save" and then "Publish"
Using Command Line:
cd C:\DevHome\TuneRipper
dotnet publish TuneRipper.Api\TuneRipper.Api.csproj -c Release -f net10.0 -o C:\Publish\TuneRipper.Api --verbosity normal
3B.4 Publish the Blazor WebAssembly App (TuneRipper)
Using Visual Studio:
- Right-click on TuneRipper project
- Select "Publish..."
- Choose "Folder" as the publish target
- Set publish folder to:
C:\Publish\TuneRipper - Configure settings:
- Configuration:
Release - Target Framework:
net10.0
- Configuration:
- Click "Save" and then "Publish"
Using Command Line:
cd C:\DevHome\TuneRipper
dotnet publish TuneRipper\TuneRipper.csproj -c Release -f net10.0 -o C:\Publish\TuneRipper --verbosity normal
3B.5 Verify Published Output
After publishing, check the output directories:
API Output (C:\Publish\TuneRipper.Api\):
TuneRipper.Api.dllTuneRipper.Api.exeweb.config(should be auto-generated)appsettings.json- Various .NET 10 runtime files
Blazor Output (C:\Publish\TuneRipper\):
wwwroot\folder containing:index.html_framework\folder- Static assets (CSS, JS, etc.)
Step 4: Prepare Deployment Files
4.1 Create Deployment Directories
mkdir C:\inetpub\wwwroot\TuneRipper
mkdir C:\inetpub\wwwroot\TuneRipperApi
mkdir C:\inetpub\wwwroot\TuneRipperApi\wwwroot
mkdir C:\inetpub\wwwroot\TuneRipperApi\wwwroot\downloads
4.2 Copy API Files
- Copy all contents from
C:\Publish\TuneRipper.Api\toC:\inetpub\wwwroot\TuneRipperApi\ - Copy
yt-dlp.exetoC:\inetpub\wwwroot\TuneRipperApi\wwwroot\yt-dlp.exe - Verify the API structure:
C:\inetpub\wwwroot\TuneRipperApi\ ??? TuneRipper.Api.dll ??? TuneRipper.Api.exe ??? appsettings.json ??? web.config ??? wwwroot\ ? ??? yt-dlp.exe ? ??? downloads\ ??? [other .NET 10 runtime files]
4.3 Copy Blazor WebAssembly Files
- Copy all contents from
C:\Publish\TuneRipper\wwwroot\toC:\inetpub\wwwroot\TuneRipper\ - Verify the Blazor structure:
C:\inetpub\wwwroot\TuneRipper\ ??? index.html ??? _framework\ ? ??? blazor.webassembly.js ? ??? dotnet.10.x.x.js ? ??? [.NET 10 WebAssembly files] ??? css\ ??? images\ ??? [other static files]
Step 5: Configure IIS Sites
5.1 Open IIS Manager
- Press
Win + R, typeinetmgr, press Enter - IIS Manager should open
5.2 Create API Application
- In IIS Manager, expand the server node
- Right-click "Sites" ? "Add Website..."
- Configure the API site:
- Site name:
TuneRipper API - Physical path:
C:\inetpub\wwwroot\TuneRipperApi - Port:
80(HTTP) and443(HTTPS) - Host name:
tuneripper-api.vrba.one
- Site name:
- Click "OK"
5.3 Create Blazor WebAssembly Application
- Right-click "Sites" ? "Add Website..."
- Configure the Blazor site:
- Site name:
TuneRipper App - Physical path:
C:\inetpub\wwwroot\TuneRipper - Port:
80(HTTP) and443(HTTPS) - Host name:
tuneripper.vrba.one
- Site name:
- Click "OK"
5.4 Configure Application Pool for API (.NET 10 Specific)
- Click "Application Pools" in the left panel
- Find the application pool for TuneRipper API (usually has the same name)
- Right-click ? "Advanced Settings..."
- Set the following .NET 10 specific settings:
- .NET CLR Version:
No Managed Code(This is correct for .NET 10!) - Managed Pipeline Mode:
Integrated - Start Mode:
OnDemand - Process Identity:
ApplicationPoolIdentity - Load User Profile:
True(important for .NET 10) - Idle Time-out (minutes):
20or0(no timeout for testing)
- .NET CLR Version:
- Click "OK"
5.5 Verify ASP.NET Core Module for API Site
- Select your TuneRipper API site in IIS Manager
- Double-click "Modules"
- Ensure AspNetCoreModuleV2 is present and enabled
- If not present, the Hosting Bundle installation may have failed
Step 6: Configure SSL Certificates with Let's Encrypt
6.1 Using win-acme (Recommended)
- Open Command Prompt as Administrator
- Navigate to win-acme directory:
cd C:\win-acme\ - Run win-acme and create certificates for both domains:
wacs.exe --target iis --siteid 1 --commonname tuneripper.vrba.one wacs.exe --target iis --siteid 2 --commonname tuneripper-api.vrba.one - Follow the prompts to:
- Select the IIS sites
- Validate domain ownership
- Install certificates
- Set up automatic renewal
6.2 Configure HTTPS Bindings in IIS
- In IIS Manager, select TuneRipper App site
- Click "Bindings..." in the Actions panel
- Click "Add..."
- Configure HTTPS binding:
- Type:
https - Port:
443 - Host name:
tuneripper.vrba.one - SSL certificate: Select the Let's Encrypt certificate
- Type:
- Repeat for TuneRipper API site with
tuneripper-api.vrba.one
Step 7: Configure Production Settings
7.1 Update API Configuration for Production
- Navigate to
C:\inetpub\wwwroot\TuneRipperApi\ - Edit
appsettings.json:{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning", "TuneRipper.Api.Services.VideoService": "Information" } }, "AllowedHosts": "tuneripper-api.vrba.one", "ApiSettings": { "BaseUrl": "https://tuneripper-api.vrba.one", "HttpBaseUrl": "https://tuneripper-api.vrba.one", "TimeoutSeconds": 300, "EnableLogging": true, "RetryAttempts": 3, "RetryDelaySeconds": 2 } }
7.2 Update CORS for Production Domains
-
Navigate to
C:\inetpub\wwwroot\TuneRipperApi\ -
If you need to restrict CORS (optional), modify the API's
Program.cs:// Update CORS policy for production builder.Services.AddCors(options => { options.AddPolicy("ProductionPolicy", policy => { policy.WithOrigins( "https://tuneripper.vrba.one", "https://tuneripper-api.vrba.one" ) .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials(); }); }); // Use the production policy app.UseCors("ProductionPolicy");Note: The current CORS configuration uses
AllowAnyOrigin()which will work fine with your subdomains without changes. The above restriction is optional for enhanced security.
7.3 Update Blazor App Configuration
- Navigate to
C:\inetpub\wwwroot\TuneRipper\ - Update
appsettings.json:{ "ApiSettings": { "BaseUrl": "https://tuneripper-api.vrba.one", "HttpBaseUrl": "https://tuneripper-api.vrba.one", "TimeoutSeconds": 300, "EnableLogging": false, "RetryAttempts": 3, "RetryDelaySeconds": 2 }, "AppSettings": { "AppName": "TuneRipper", "Version": "1.0.0", "Environment": "Production", "EnableDetailedErrors": false } }
7.4 Update API Root Endpoint URLs
- Navigate to
C:\inetpub\wwwroot\TuneRipperApi\ - If needed, update the root endpoint in
Program.csto show production URLs:urls = new { https = "https://tuneripper-api.vrba.one", app = "https://tuneripper.vrba.one" }
Step 8: Verify Web Configuration Files
? Good News: The
web.configfiles are now included in both projects and will be automatically deployed during publish!
8.1 API web.config (Auto-deployed)
The API project now includes a web.config file that will be automatically copied during publish. It includes:
- HTTPS redirection for production security
- ASP.NET Core hosting configuration for IIS
- Security headers for production
- Environment variables set to Production
Location after publish: C:\inetpub\wwwroot\TuneRipperApi\web.config
8.2 Blazor WebAssembly web.config (Auto-deployed)
The Blazor project now includes a web.config file that will be automatically copied during publish. It includes:
- HTTPS redirection for production security
- SPA routing support for client-side navigation
- MIME type mappings for .wasm and .dll files
- Security headers for production
Location after publish: C:\inetpub\wwwroot\TuneRipper\web.config
8.3 Manual Verification (Optional)
After deployment, you can verify the files are present:
- Check API web.config:
C:\inetpub\wwwroot\TuneRipperApi\web.config - Check Blazor web.config:
C:\inetpub\wwwroot\TuneRipper\web.config
Note
: These files are now version-controlled and automatically deployed. No manual configuration needed!
Step 9: Set Permissions
9.1 Configure Folder Permissions
- Right-click
C:\inetpub\wwwroot\TuneRipperApi\wwwroot\downloads - Select "Properties" ? "Security" tab
- Click "Edit..." ? "Add..."
- Type:
IIS_IUSRSand click "Check Names" ? "OK" - Select IIS_IUSRS and check:
- ? Full Control
- ? Modify
- ? Read & Execute
- ? Write
- Click "OK" to save
9.2 Set Application Pool Identity Permissions
- Right-click
C:\inetpub\wwwroot\TuneRipperApi - Properties ? Security ? Edit ? Add
- Type:
IIS AppPool\TuneRipper API? Check Names ? OK - Grant Read & Execute permissions
- Click OK
Step 10: Test Deployment
10.1 Test .NET 10 Runtime in IIS
- Start both websites in IIS Manager
- Check Application Pool status - should be "Started"
- If Application Pool keeps stopping, check Event Viewer for errors
10.2 Test Production URLs
- Open a web browser
- Navigate to:
https://tuneripper-api.vrba.one/api/health - You should see a JSON health check response
- Test the root endpoint:
https://tuneripper-api.vrba.one/ - Verify the API information is displayed
10.3 Test Blazor WebAssembly App
- Navigate to:
https://tuneripper.vrba.one - The TuneRipper application should load
- Check browser developer tools (F12) for any loading errors
- Test the YouTube URL input functionality
10.4 Test End-to-End Functionality
- In the Blazor app, enter a YouTube URL
- Click "Download MP3"
- Monitor the processing progress
- Verify the file download works
10.5 Test SSL Certificates
- Check certificate validity in browser
- Verify automatic HTTP to HTTPS redirection
- Test certificate auto-renewal (win-acme sets up scheduled tasks)
Step 11: Troubleshooting
11.1 Common .NET 10 Issues
Application Pool Keeps Stopping
Problem: Application pool stops immediately after starting Solutions:
- Check Event Viewer:
Windows Logs?ApplicationandSystem - Look for ASP.NET Core errors or .NET runtime issues
- Verify .NET 10 Hosting Bundle is properly installed:
dotnet --list-runtimes - Ensure
web.confighas correctprocessPathandarguments - Check Application Pool settings:
- .NET CLR Version = "No Managed Code"
- Managed Pipeline Mode = "Integrated"
SSL Certificate Issues
Problem: SSL certificate not working or expired Solutions:
- Check certificate binding in IIS Manager
- Verify Let's Encrypt certificate renewal:
# For win-acme (Chocolatey installation) wacs --list # For manual win-acme installation C:\win-acme\wacs.exe --list # For certbot certbot certificates - Check Windows Task Scheduler for renewal tasks
- Manually renew if needed:
# For win-acme (Chocolatey installation) wacs --renew # For manual win-acme installation C:\win-acme\wacs.exe --renew # For certbot certbot renew
CORS Errors
Problem: Cross-origin requests blocked Solutions:
- Verify CORS configuration in
Program.cs - Current configuration uses
AllowAnyOrigin()which should work - If you implemented production CORS restrictions, ensure domains are correctly specified
- Check browser console for specific CORS error messages
500 Internal Server Error
Problem: HTTP 500 error when accessing API Solutions:
- Enable detailed errors in
web.config:<aspNetCore processPath="dotnet" arguments=".\TuneRipper.Api.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess"> <environmentVariables> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> </environmentVariables> </aspNetCore> - Create
logsfolder in API directory - Check stdout logs for detailed error information
- Verify all .NET 10 dependencies are published
Blazor WebAssembly Loading Issues
Problem: Blazor app shows loading indefinitely Solutions:
- Check browser console (F12) for JavaScript errors
- Verify all
.wasmand.dllfiles are present in_frameworkfolder - Check that
dotnet.jsandblazor.webassembly.jsare loading - Ensure proper MIME types in
web.config - Verify API base URL is correctly configured in
appsettings.json
Chocolatey Installation Issues
Problem: Chocolatey packages not installing or commands not found Solutions:
- Verify Chocolatey installation:
choco --version - Refresh environment variables:
refreshenv - Reinstall problematic packages:
choco uninstall <package-name> -y choco install <package-name> -y - Check package installation status:
choco list --local-only
11.2 Verification Commands
# Check .NET installation (Hosting Bundle should show runtimes, SDK not required)
dotnet --list-runtimes
# Check Chocolatey packages
choco list --local-only
# Check IIS status
iisreset /status
# List IIS sites
%windir%\system32\inetsrv\appcmd.exe list sites
# Check Application Pools
%windir%\system32\inetsrv\appcmd.exe list appPools
# Verify ASP.NET Core Module (Critical for .NET 10)
%windir%\system32\inetsrv\appcmd.exe list modules | findstr AspNet
# Check SSL certificates
certlm.msc
# Test HTTPS connectivity
curl -I https://tuneripper-api.vrba.one/api/health
curl -I https://tuneripper.vrba.one
# Verify FFmpeg (Chocolatey)
ffmpeg -version
# Verify yt-dlp (Chocolatey)
yt-dlp --version
11.3 Log Locations
- IIS Logs:
C:\inetpub\logs\LogFiles\W3SVC1\(and W3SVC2, etc.) - Windows Event Log: Event Viewer ? Application and System logs
- ASP.NET Core stdout logs:
C:\inetpub\wwwroot\TuneRipperApi\logs\(if enabled) - Application-specific logs: Configure in
appsettings.json - Let's Encrypt Logs:
- win-acme (Chocolatey): Check
choco list win-acmefor installation path - win-acme (Manual):
C:\win-acme\logs\ - certbot:
C:\Certbot\log\
- win-acme (Chocolatey): Check
- Chocolatey Logs:
C:\ProgramData\chocolatey\logs\
Step 12: Security Considerations
12.1 Production Security
- SSL/TLS: Certificates automatically managed by Let's Encrypt
- HTTPS Enforcement: Configured in
web.configfor automatic redirection - CORS: Current configuration uses
AllowAnyOrigin()(works with subdomains) - Security Headers: Added to
web.config(X-Frame-Options, etc.) - File Upload Limits: Configure maximum file sizes if needed
- Rate Limiting: Consider implementing rate limiting for API endpoints
- Update .NET Regularly: Keep .NET 10 runtime updated via Hosting Bundle or Chocolatey
- Update Chocolatey Packages: Regularly update packages with
choco upgrade all
12.2 Firewall Configuration
- Open Windows Defender Firewall
- Create inbound rules for HTTP (80) and HTTPS (443) ports
- Block development ports (7160, 8080) from external access
- Configure network access as needed
12.3 CORS Security Analysis
The current CORS configuration in your API uses:
policy.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader();
? This will work perfectly with your subdomain setup because:
AllowAnyOrigin()permits requests from any domain- Your Blazor app at
https://tuneripper.vrba.onecan call API athttps://tuneripper-api.vrba.one - No CORS configuration changes are required
For enhanced security (optional), you could restrict to specific domains as shown in Step 7.2.
Step 13: Maintenance
13.1 Regular Tasks
- Monitor disk space in downloads folder
- Update yt-dlp.exe regularly for YouTube compatibility
- Check for .NET 10 updates and security patches
- Review and rotate log files
- Monitor application pool health
- Monitor SSL certificate renewals (should be automatic)
- Update Chocolatey packages regularly
13.2 Chocolatey Package Maintenance
Keep your system updated using Chocolatey's built-in update capabilities:
# Update all installed packages
choco upgrade all -y
# Update specific packages
choco upgrade ffmpeg yt-dlp dotnet-hosting -y
# Check for outdated packages
choco outdated
# Verify installed tools
ffmpeg -version
yt-dlp --version
13.3 SSL Certificate Maintenance
- win-acme (Chocolatey): Automatic renewal via Windows Task Scheduler
- win-acme (Manual): Automatic renewal via Windows Task Scheduler
- certbot: Set up automatic renewal:
# Add to Task Scheduler to run twice daily certbot renew --quiet
13.4 Updating .NET 10
When new .NET 10 updates are released:
Option A: Using Chocolatey (Recommended)
# Update .NET Hosting Bundle
choco upgrade dotnet-hosting -y
# If you have SDK installed for development
choco upgrade dotnet-sdk -y
Option B: Manual Update (Alternative)
- Download and install new .NET 10 Hosting Bundle (SDK not required for production)
- Restart IIS:
iisreset - Test application functionality
- Update applications if needed (rebuild only if breaking changes)
13.5 Backup Chocolatey Package List
Create a backup of your installed packages for easy restoration:
# Export installed packages to a file
choco export C:\backup\packages.config
# Restore packages from backup (on new machine)
choco install C:\backup\packages.config
Conclusion
Your TuneRipper application should now be successfully deployed on IIS with Windows 11 using .NET 10, complete with production HTTPS via Let's Encrypt.
Production URLs:
- API:
https://tuneripper-api.vrba.one - Blazor App:
https://tuneripper.vrba.one
Key Production Features:
- ? Automatic HTTPS with Let's Encrypt certificates
- ? Automatic HTTP?HTTPS redirection
- ? CORS compatibility with subdomain setup
- ? Security headers configured
- ? Automatic certificate renewal set up
- ? Chocolatey package management for easy updates and maintenance
CORS Compatibility Summary
? Current CORS Configuration Works Perfect
Your existing API CORS setup using AllowAnyOrigin() will work seamlessly with:
https://tuneripper.vrba.one?https://tuneripper-api.vrba.one- No code changes required
- Cross-subdomain requests allowed
?? Optional Security Enhancement
For production, you can optionally restrict CORS to specific domains (see Step 7.2), but it's not required for functionality.
Quick Reference Commands
Basic System Commands
# Check .NET 10 runtime installation (production)
dotnet --list-runtimes
# Restart IIS
iisreset
# Test production endpoints
curl https://tuneripper-api.vrba.one/api/health
curl -I https://tuneripper.vrba.one
# Check SSL certificates
certlm.msc
# View IIS processes
tasklist | findstr w3wp
# Check Application Pool status
%windir%\system32\inetsrv\appcmd.exe list appPools /text:name,state
Chocolatey Commands
# Check Chocolatey version
choco --version
# List installed packages
choco list --local-only
# Update all packages
choco upgrade all -y
# Update specific packages
choco upgrade ffmpeg yt-dlp dotnet-hosting -y
# Check for outdated packages
choco outdated
# Verify installed tools
ffmpeg -version
yt-dlp --version
SSL Certificate Management
# win-acme commands (Chocolatey installation)
wacs --list
wacs --renew
# win-acme commands (manual installation)
C:\win-acme\wacs.exe --list
C:\win-acme\wacs.exe --renew
# certbot commands
certbot certificates
certbot renew
Chocolatey Benefits Summary
?? Advantages of Using Chocolatey
- Automated Installation: No manual downloads or extractions needed
- Automatic PATH Configuration: Tools are immediately available system-wide
- Easy Updates: Update all tools with a single command
- Consistent Environment: Same setup across multiple machines
- Dependency Management: Automatically handles tool dependencies
- Easy Removal: Clean uninstallation when needed
- Version Control: Pin specific versions if required
?? Packages Used in This Guide
dotnet-hosting- .NET 10 Hosting Bundle for IISdotnet-sdk- .NET 10 SDK (development scenario)ffmpeg- Audio/video processing libraryyt-dlp- YouTube video downloaderwin-acme- Let's Encrypt SSL certificate managementcurl- HTTP testing utility
This guide includes production-ready HTTPS setup with Let's Encrypt for the subdomain configuration: https://tuneripper.vrba.one and https://tuneripper-api.vrba.one. The existing CORS configuration will work without modifications. Chocolatey package manager provides automated installation and maintenance for all prerequisites.