API reference
Method CreateDockerNginxConfig
- Namespace
- DisCatSharp.Hosting.AspNetCore.Deployment
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
CreateDockerNginxConfig(Uri, string, int, DiscordAspNetCoreIngressOptions?)
Creates an NGINX configuration snippet tailored for a Docker network where the ASP.NET Core app is addressed by service name.
public static string CreateDockerNginxConfig(Uri publicBaseUrl, string upstreamServiceName, int upstreamPort, DiscordAspNetCoreIngressOptions? options = null)
Parameters
publicBaseUrlUriThe externally visible base URL.
upstreamServiceNamestringThe Docker service name for the ASP.NET Core container.
upstreamPortintThe ASP.NET Core container port.
optionsDiscordAspNetCoreIngressOptionsOptional ingress route options. Defaults to package defaults.
Returns
- string
An NGINX location snippet.