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
publicBaseUrlUriThe externally visible base URL.
upstreamBaseUrlUriThe base URL where the ASP.NET Core app listens internally.
optionsDiscordAspNetCoreIngressOptionsOptional ingress route options. Defaults to package defaults.
Returns
- string
An NGINX location snippet.