Table of Contents
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

publicBaseUrl Uri

The externally visible base URL.

upstreamServiceName string

The Docker service name for the ASP.NET Core container.

upstreamPort int

The ASP.NET Core container port.

options DiscordAspNetCoreIngressOptions

Optional ingress route options. Defaults to package defaults.

Returns

string

An NGINX location snippet.