Table of Contents
API reference

Method CreateDockerCaddyConfig

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

CreateDockerCaddyConfig(Uri, string, int, DiscordAspNetCoreIngressOptions?, Uri?)

Creates a Caddy configuration snippet tailored for a Docker network where the ASP.NET Core app is addressed by service name.

public static string CreateDockerCaddyConfig(Uri publicBaseUrl, string upstreamServiceName, int upstreamPort, DiscordAspNetCoreIngressOptions? options = null, Uri? upstreamBaseUrl = 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.

upstreamBaseUrl Uri

Optional upstream base URL used to compute path rewrites. Defaults to http://internal/.

Returns

string

A Caddyfile snippet.