Table of Contents
API reference

Method CreateNginxConfig

Namespace
DisCatSharp.Hosting.AspNetCore.Deployment
Assembly
DisCatSharp.Hosting.AspNetCore.dll

CreateNginxConfig(Uri, Uri, DiscordAspNetCoreIngressOptions?)

Creates an NGINX configuration snippet that forwards the public ingress surface to the ASP.NET Core app.

public static string CreateNginxConfig(Uri publicBaseUrl, Uri upstreamBaseUrl, DiscordAspNetCoreIngressOptions? options = null)

Parameters

publicBaseUrl Uri

The externally visible base URL.

upstreamBaseUrl Uri

The base URL where the ASP.NET Core app listens internally.

options DiscordAspNetCoreIngressOptions

Optional ingress route options. Defaults to package defaults.

Returns

string

An NGINX location snippet.