Table of Contents
API reference

Method CreateApacheConfig

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

CreateApacheConfig(Uri, Uri, DiscordAspNetCoreIngressOptions?)

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

public static string CreateApacheConfig(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 Apache reverse-proxy snippet.