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
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 Apache reverse-proxy snippet.