AspNetCoreSharedServer.Api 1.0.14

There is a newer version of this package available.
See the version list below for details.
dotnet add package AspNetCoreSharedServer.Api --version 1.0.14
                    
NuGet\Install-Package AspNetCoreSharedServer.Api -Version 1.0.14
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AspNetCoreSharedServer.Api" Version="1.0.14" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNetCoreSharedServer.Api" Version="1.0.14" />
                    
Directory.Packages.props
<PackageReference Include="AspNetCoreSharedServer.Api" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AspNetCoreSharedServer.Api --version 1.0.14
                    
#r "nuget: AspNetCoreSharedServer.Api, 1.0.14"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AspNetCoreSharedServer.Api@1.0.14
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AspNetCoreSharedServer.Api&version=1.0.14
                    
Install as a Cake Addin
#tool nuget:?package=AspNetCoreSharedServer.Api&version=1.0.14
                    
Install as a Cake Tool

AspNetCoreSharedServer

A ASP.NET Core server for Linux that starts Kestrel on demand and stops it when idle. For use when hosting ASP.NET Core in a shared hosting environment behind a proxy like Apache or Nginx, where Kestrel should not run as a permanent Systemd service using resources, but should be started on demand and shutdown when idle.

AspNetCoreSharedServer.Api

This is a library to control the AspNetCoreSharedServer.

Usage

Run AspNetCoreSharedServer as a Systemd service. All the configuration is stored in /etc/aspnetcore/applications.json. When the configuration is changed, changes are applied on the fly. The applications.json file is defined as follows:

{
  "Applications": [
    {
      "Name": "MyApp",
      "Assembly": "Path/To/ASPNETCoreApp.dll",
      "Arguments": "",
      "Urls": "http://original-domain.org",
      "ListenUrls": "http://localhost",
      "IdleTimeout": 300,
      "Recycle": 1200,
      "Environment": {
        "ASPNETCORE_ENVIRONMENT": "Production"
      }
    }
  ]
}
  • Name specifies the name of the application. It must be unique.
  • Assembly denotes the path to the ASP.NET Core application DLL.
  • Arguments are optional command line arguments passed to the application.
  • Urls is the original URL that the application will respond to. This are the urls as received by the proxy server.
  • ListenUrls are the URLs that this Application will listen on. This is where the proxy server will forward requests to.
  • IdleTimeout is the time in seconds after which the application will be stopped when it is idle.
  • Recycle is the time in seconds after which the application will be restarted, regardless of activity.
  • Environment is a dictionary of environment variables that will be set for the application when it is started.

After you have defined your applications in the applications.json file, you can proxy to the sockets specified in ListenUrls from Apache or Nginx. The original Urls that Apache or Nginx serve will be passed to Kestrel as a environment varibale ORIGINAL_URLS from the Urls parameter in applications.json.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.2 245 7/7/2025
1.1.1 125 7/7/2025
1.1.0 122 7/7/2025
1.0.29 121 7/7/2025
1.0.28 124 7/7/2025
1.0.27 124 7/7/2025
1.0.26 124 7/6/2025
1.0.25 115 6/27/2025
1.0.24 129 6/26/2025
1.0.23 132 6/25/2025
1.0.22 134 6/25/2025
1.0.21 135 6/23/2025
1.0.20 131 6/23/2025
1.0.19 133 6/23/2025
1.0.18 123 6/21/2025
1.0.17 64 6/21/2025
1.0.16 88 6/20/2025
1.0.15 87 6/20/2025
1.0.14 83 6/20/2025
1.0.13 83 6/20/2025
1.0.12 86 6/20/2025
1.0.11 89 6/20/2025
1.0.10 103 6/20/2025
1.0.9 101 6/20/2025
1.0.8 106 6/20/2025
1.0.7 120 6/20/2025
1.0.6 116 6/20/2025
1.0.5 116 6/20/2025
1.0.4 120 6/20/2025
1.0.3 119 6/20/2025
1.0.2 118 6/20/2025
1.0.1 128 6/20/2025